mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-16 08:17:51 +00:00
fix response_format={'type': 'json_object'} not working for Azure models (#5468)
This commit is contained in:
@@ -272,6 +272,8 @@ class AzureOpenAIConfig:
|
||||
optional_params["tools"] = [_tool]
|
||||
optional_params["tool_choice"] = _tool_choice
|
||||
optional_params["json_mode"] = True
|
||||
else:
|
||||
optional_params["response_format"] = value
|
||||
elif param in supported_openai_params:
|
||||
optional_params[param] = value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user