It is possible to set a default model that the AI Router will use when it is
unsure of the most appropriate model. Any model from the list of
Available Models can be used. In
case you do not want to set a default model, you can set the model to auto
,
to have the AI Router decide on a default model.
Using OpenAI:
...
client.chat.completions.create(
model='auto',
messages=[{"role": "user", "content": input}]
)
Using langchain:
llm = ChatOpenAI(
model='auto',
base_url='https://api.airouter.io',
)