I’m using strict structured outputs with the OpenAI Responses API, but I’m unsure what to expect when the model refuses a request. Can a refusal come back outside the schema I supplied, and if so, what should a client check before trying to parse the response as ordinary JSON?
I’m interested in how people handle this in production, especially when downstream code assumes every successful API response has the same fields.
Can you answer this question?
Write Answer0 Answers