mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(router.py): add reason for fallback failure to client-side exception string
make it easier to debug why a fallback failed to occur
This commit is contained in:
parent
1a82a6370d
commit
0de640700d
2 changed files with 23 additions and 5 deletions
|
@ -1,7 +1,14 @@
|
|||
model_list:
|
||||
- model_name: "*"
|
||||
- model_name: "gpt-3.5-turbo"
|
||||
litellm_params:
|
||||
model: "*"
|
||||
model: "gpt-3.5-turbo"
|
||||
- model_name: "gpt-4"
|
||||
litellm_params:
|
||||
model: "gpt-4"
|
||||
api_key: "bad_key"
|
||||
- model_name: "gpt-4o"
|
||||
litellm_params:
|
||||
model: "gpt-4o"
|
||||
|
||||
litellm_settings:
|
||||
callbacks: ["lakera_prompt_injection"]
|
||||
fallbacks: [{"gpt-3.5-turbo": ["gpt-4", "gpt-4o"]}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue