I am trying to use gpt-5-nano to run analysis on a transcript like so:
async with AsyncOpenAI() as client:
analysis_response = await client.responses.create(
model='gpt-5-nano',
instructions=ANALYSIS_INSTRUCTIONS,
input=f'Transcript:\n{diarized_text}',
text={
'format': {
'type': 'json_schema',
'name': 'analysis',
'strict': True,
'schema': ANALYSIS_SCHEMA,
}
},
max_output_tokens=600,
store=False,
)
analysis_response.output_text always comes back as an empty string though. It says Structured Outputs are supported on https://platform.openai.com/docs/models/gpt-5-nano, but it's not working. It works fine if I use gpt-4o-mini. Does gpt-5-nano not actually support Structured Outputs?