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