@@ -190,7 +190,10 @@ output = query({
190
190
"${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } ",
191
191
{
192
192
method: "POST",
193
- body: data
193
+ headers: {
194
+ "Content-Type": "application/json"
195
+ },
196
+ body: JSON.stringify(data)
194
197
}
195
198
);
196
199
const result = await response.json();
@@ -229,9 +232,12 @@ output = query({
229
232
const response = await fetch(
230
233
"${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } ",
231
234
{
232
- headers: { Authorization: "Bearer ${ selectedApiKey ?. apiKey } " },
235
+ headers: {
236
+ Authorization: "Bearer ${ selectedApiKey ?. apiKey } ",
237
+ "Content-Type": "application/json"
238
+ },
233
239
method: "POST",
234
- body: data
240
+ body: JSON.stringify( data)
235
241
}
236
242
);
237
243
const result = await response.json();
@@ -392,7 +398,10 @@ output = query({
392
398
"${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } ",
393
399
{
394
400
method: "POST",
395
- body: data
401
+ headers: {
402
+ "Content-Type": "application/json"
403
+ },
404
+ body: JSON.stringify(data)
396
405
}
397
406
);
398
407
const result = await response.json();
@@ -439,9 +448,12 @@ output = query({
439
448
const response = await fetch(
440
449
"${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } ",
441
450
{
442
- headers: { Authorization: "Bearer ${ selectedApiKey ?. apiKey } " },
451
+ headers: {
452
+ Authorization: "Bearer ${ selectedApiKey ?. apiKey } ",
453
+ "Content-Type": "application/json"
454
+ },
443
455
method: "POST",
444
- body: data
456
+ body: JSON.stringify( data)
445
457
}
446
458
);
447
459
const result = await response.json();
0 commit comments