I am trying the understand the use of
override params
in the following snippet:
{
"strategy": {
"mode": "fallback",
},
"targets": [
{
"virtualKey": "openai-virtual-key",
},
{
"virtualKey": "anthropic-virtual-key",
"override_params": {
"model": "claude-1"
}
}
]
}
Here is how I understood this, please correct me:
- API calls is made through a default call ideally. It is instantiated with a virtual_key and the model (assume gpt-3.5) is specificed during the chat completion call.
- Now, when #1 tries and fails, the above strategy will be applied. Meaning the call will be routed to target #1 above β openai-virtual-key + model (assume gpt-3.5)
- Finally if #2 fails, same call is set through β anthropic-virtual-key, since the model in the chat completions call is gpt-3.5 until then, it's improtant to override the model to claude