Skip to content

Commit 3998320

Browse files
committed
fix: update response format for Responses API to align with new specifications
1 parent fc9f0c0 commit 3998320

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/core/api-client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export class ApiClient {
6666
{ role:'system', content:[ sysTextPartResponses ]},
6767
{ role:'user', content:[ textPartResponses, imagePartResponses ]}
6868
],
69-
response_format: { type:'json_object' }
69+
// Responses API uses text.format for JSON mode (Azure and new OpenAI spec)
70+
text: { format: 'json' }
7071
};
7172
} else {
7273
// chat

0 commit comments

Comments
 (0)