Open raysuelzer opened 7 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.
Any help on this would be appreciated. I'm having some real issues gettng the assistant to return JSON responses.
@raysuelzer as a temporary workaround, you can visit https://platform.openai.com/assistants using your account (the one tied to the API key you are using to create assistants), click on your assistant and toggle 'JSON object' under Response format
Still missing in 1.0.0-beta.4
Ideally, this would also support the json_schema
value introduced with structured outputs, not just json_object
:
https://openai.com/index/introducing-structured-outputs-in-the-api/.
FWIW as of 2.0.0-beta2, neither value is supported.
Library name and version
Azure.AI.OpenAI.Assistants_1.0.0-beta.3
Query/Question
I cannot seem to find anywhere in the Assistants SDK to set the "response format" when using the OpenAI SDKs. This is useful to ensure that the API returns valid JSON. Sorry if this exists but I am missing it.
From OpenAI:
https://platform.openai.com/docs/api-reference/chat/create#chat-create-response_format
Environment
No response