4 ms·
This is so fun! Could you make it compatible with openrouter please? I see you use the openai binding that allows you to specify a different base_url so that w
by crocowhile 2y ago
This is so fun!
Could you make it compatible with openrouter please?
I see you use the openai binding that allows you to specify a different base_url so that would work out of the box and integrates well with the .env
```
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1 https://openrouter.ai/api/v1",
api_key="<OPENROUTER_API_KEY>",
)
```