fix + test fireworks ai param mapping for tools

This commit is contained in:
Ishaan Jaff 2024-06-26 06:57:04 -07:00
parent 6c388dc05a
commit 8a7f2921f2

View file

@ -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