fix(openai.py): deepinfra function calling - drop_params support for unsupported tool choice value

This commit is contained in:
Krrish Dholakia 2024-06-18 16:19:42 -07:00
parent 604f9689d0
commit 5ad095ad9d
3 changed files with 97 additions and 29 deletions

View file

@ -2950,6 +2950,11 @@ def get_optional_params(
non_default_params=non_default_params,
optional_params=optional_params,
model=model,
drop_params=(
drop_params
if drop_params is not None and isinstance(drop_params, bool)
else False
),
)
elif custom_llm_provider == "perplexity":
supported_params = get_supported_openai_params(