Structured Output
2 resources
Structured outputs (Gemini API)
by Google
Gemini's equivalent: constrain responses to a JSON schema.
Structured model outputs
by OpenAI
How to get schema-valid JSON instead of hoping the model formats it right.
2 resources
by Google
Gemini's equivalent: constrain responses to a JSON schema.
by OpenAI
How to get schema-valid JSON instead of hoping the model formats it right.