mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-14 22:21:29 +00:00
docs(config.md): update wildcard docs
This commit is contained in:
@@ -295,7 +295,7 @@ Dynamically call any model from any given provider without the need to predefine
|
||||
model_list:
|
||||
- model_name: "*" # all requests where model not in your config go to this deployment
|
||||
litellm_params:
|
||||
model: "openai/*" # passes our validation check that a real provider is given
|
||||
model: "*" # passes our validation check that a real provider is given
|
||||
```
|
||||
|
||||
2. Start LiteLLM proxy
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
model_list:
|
||||
- model_name: "gpt-3.5-turbo"
|
||||
- model_name: "*"
|
||||
litellm_params:
|
||||
model: "openai/gpt-3.5-turbo"
|
||||
model: "*"
|
||||
|
||||
+2
-2
@@ -2937,8 +2937,8 @@ class Router:
|
||||
model_group = kwargs["litellm_params"]["metadata"].get(
|
||||
"model_group", None
|
||||
)
|
||||
|
||||
id = kwargs["litellm_params"].get("model_info", {}).get("id", None)
|
||||
model_info = kwargs["litellm_params"].get("model_info", {}) or {}
|
||||
id = model_info.get("id", None)
|
||||
if model_group is None or id is None:
|
||||
return
|
||||
elif isinstance(id, int):
|
||||
|
||||
Reference in New Issue
Block a user