forked from phoenix/litellm-mirror
fix response_format={'type': 'json_object'} not working for Azure models (#5468)
This commit is contained in:
parent
37f9705d6e
commit
7778fa0146
1 changed files with 2 additions and 0 deletions
|
@ -272,6 +272,8 @@ class AzureOpenAIConfig:
|
||||||
optional_params["tools"] = [_tool]
|
optional_params["tools"] = [_tool]
|
||||||
optional_params["tool_choice"] = _tool_choice
|
optional_params["tool_choice"] = _tool_choice
|
||||||
optional_params["json_mode"] = True
|
optional_params["json_mode"] = True
|
||||||
|
else:
|
||||||
|
optional_params["response_format"] = value
|
||||||
elif param in supported_openai_params:
|
elif param in supported_openai_params:
|
||||||
optional_params[param] = value
|
optional_params[param] = value
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue