Describe the bug
I need to set the response_format to {"type": "json_object"}. In order to do that I need to create an instance of OpenAIChatPromptExecutionSettings and use that when building the Kernel function. However, in order to only set the response_format I have to use the following code, even though there are defaults specified.
Describe the bug I need to set the
response_format
to{"type": "json_object"}
. In order to do that I need to create an instance ofOpenAIChatPromptExecutionSettings
and use that when building the Kernel function. However, in order to only set theresponse_format
I have to use the following code, even though there are defaults specified.This is already a known issue for pydantic and default fields. It is documented here and they have also included workarounds.
To Reproduce Attempt to create an instance of
OpenAIChatPromptExecutionSettings
and only setresponse_format
.Expected behavior Should be able to create an instance with only
response_format
.Screenshots
Platform
Additional context Add any other context about the problem here.