mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(utils.py): support passing response_format for together ai calls
This commit is contained in:
parent
74a85fac0e
commit
6d2ae5a0d8
1 changed files with 2 additions and 0 deletions
|
@ -3125,6 +3125,8 @@ def get_optional_params(
|
||||||
optional_params["tools"] = tools
|
optional_params["tools"] = tools
|
||||||
if tool_choice is not None:
|
if tool_choice is not None:
|
||||||
optional_params["tool_choice"] = tool_choice
|
optional_params["tool_choice"] = tool_choice
|
||||||
|
if response_format is not None:
|
||||||
|
optional_params["response_format"] = response_format
|
||||||
elif custom_llm_provider == "ai21":
|
elif custom_llm_provider == "ai21":
|
||||||
## check if unsupported param passed in
|
## check if unsupported param passed in
|
||||||
supported_params = get_supported_openai_params(
|
supported_params = get_supported_openai_params(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue