mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
test_completion_mistral_api_mistral_large_function_call
This commit is contained in:
parent
6e3828ac84
commit
a2364b1fd6
3 changed files with 13 additions and 1 deletions
|
@ -3470,6 +3470,10 @@ def get_optional_params( # noqa: PLR0915
|
|||
optional_params["extra_body"] = _ensure_extra_body_is_safe(
|
||||
extra_body=optional_params["extra_body"]
|
||||
)
|
||||
|
||||
if optional_params["extra_body"] is None:
|
||||
# don't pass extra_body if it's empty/None
|
||||
optional_params.pop("extra_body", None)
|
||||
else:
|
||||
# if user passed in non-default kwargs for specific providers/models, pass them along
|
||||
for k in passed_params.keys():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue