How to use structured outputs while working with threads and assistants
Pushkar Gaikwad
5
Reputation points
I want the response as a JSON object. I'm using GPT-4o-mini (2024-07-18), and in the documentation, it’s mentioned that when making API calls, I need to provide the response_format
as { type: 'json_schema', json_schema: {} }
. Where exactly should I pass the response_format
parameter? Should I include it while creating the messages, while creating the run, or when creating the thread?
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
Sign in to answer