mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix + test fireworks ai param mapping for tools
This commit is contained in:
parent
6c388dc05a
commit
8a7f2921f2
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,9 @@ class FireworksAIConfig:
|
|||
if value == "required":
|
||||
# relevant issue: https://github.com/BerriAI/litellm/issues/4416
|
||||
optional_params["tool_choice"] = "any"
|
||||
|
||||
else:
|
||||
# pass through the value of tool choice
|
||||
optional_params["tool_choice"] = value
|
||||
elif param in supported_openai_params:
|
||||
if value is not None:
|
||||
optional_params[param] = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue