forked from phoenix/litellm-mirror
fix(openai.py): deepinfra function calling - drop_params support for unsupported tool choice value
This commit is contained in:
parent
604f9689d0
commit
5ad095ad9d
3 changed files with 97 additions and 29 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue