Use response_format: { "type": "json_schema", "json_schema": { ... } } or response_format: { "type": "json_object" } in the request body. Not all models support json_schema, while json_object has wider support.
Use response_format: { "type": "json_schema", "json_schema": { ... } } or response_format: { "type": "json_object" } in the request body. Not all models support json_schema, while json_object has wider support.