We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3998320 commit 962ace9Copy full SHA for 962ace9
app/src/core/api-client.js
@@ -66,8 +66,8 @@ export class ApiClient {
66
{ role:'system', content:[ sysTextPartResponses ]},
67
{ role:'user', content:[ textPartResponses, imagePartResponses ]}
68
],
69
- // Responses API uses text.format for JSON mode (Azure and new OpenAI spec)
70
- text: { format: 'json' }
+ // Responses API: JSON mode via text.format object (e.g., { type: 'json_object' })
+ text: { format: { type: 'json_object' } }
71
};
72
} else {
73
// chat
0 commit comments