mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
fix supports_web_search
This commit is contained in:
parent
1d7accce9e
commit
7dd37a5b18
4 changed files with 9 additions and 0 deletions
|
@ -4928,6 +4928,11 @@ class Router:
|
|||
and model_info["supports_function_calling"] is True # type: ignore
|
||||
):
|
||||
model_group_info.supports_function_calling = True
|
||||
if (
|
||||
model_info.get("supports_web_search", None) is not None
|
||||
and model_info["supports_web_search"] is True # type: ignore
|
||||
):
|
||||
model_group_info.supports_web_search = True
|
||||
if (
|
||||
model_info.get("supported_openai_params", None) is not None
|
||||
and model_info["supported_openai_params"] is not None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue