@@ -207,7 +207,8 @@ query({"question": "Hey, how are you?"}).then((response) => {
207
207
} else if ( codeLang === 'cURL' ) {
208
208
return `curl ${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } \\
209
209
-X POST \\
210
- -d '{"question": "Hey, how are you?"}'`
210
+ -d '{"question": "Hey, how are you?"}' \\
211
+ -H "Content-Type: application/json"`
211
212
}
212
213
return ''
213
214
}
@@ -252,6 +253,7 @@ query({"question": "Hey, how are you?"}).then((response) => {
252
253
return `curl ${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } \\
253
254
-X POST \\
254
255
-d '{"question": "Hey, how are you?"}' \\
256
+ -H "Content-Type: application/json" \\
255
257
-H "Authorization: Bearer ${ selectedApiKey ?. apiKey } "`
256
258
}
257
259
return ''
@@ -322,7 +324,8 @@ query(formData).then((response) => {
322
324
`
323
325
} else if ( codeLang === 'cURL' ) {
324
326
return `curl ${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } \\
325
- -X POST \\${ getConfigExamplesForCurl ( configData , 'formData' ) } `
327
+ -X POST \\${ getConfigExamplesForCurl ( configData , 'formData' ) } \\
328
+ -H "Content-Type: multipart/form-data"`
326
329
}
327
330
return ''
328
331
}
@@ -369,6 +372,7 @@ query(formData).then((response) => {
369
372
} else if ( codeLang === 'cURL' ) {
370
373
return `curl ${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } \\
371
374
-X POST \\${ getConfigExamplesForCurl ( configData , 'formData' ) } \\
375
+ -H "Content-Type: multipart/form-data" \\
372
376
-H "Authorization: Bearer ${ selectedApiKey ?. apiKey } "`
373
377
}
374
378
return ''
@@ -419,7 +423,8 @@ query({
419
423
} else if ( codeLang === 'cURL' ) {
420
424
return `curl ${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } \\
421
425
-X POST \\
422
- -d '{"question": "Hey, how are you?", "overrideConfig": {${ getConfigExamplesForCurl ( configData , 'json' ) } }'`
426
+ -d '{"question": "Hey, how are you?", "overrideConfig": {${ getConfigExamplesForCurl ( configData , 'json' ) } }' \\
427
+ -H "Content-Type: application/json"`
423
428
}
424
429
return ''
425
430
}
@@ -472,6 +477,7 @@ query({
472
477
return `curl ${ baseURL } /api/v1/prediction/${ dialogProps . chatflowid } \\
473
478
-X POST \\
474
479
-d '{"question": "Hey, how are you?", "overrideConfig": {${ getConfigExamplesForCurl ( configData , 'json' ) } }' \\
480
+ -H "Content-Type: application/json" \\
475
481
-H "Authorization: Bearer ${ selectedApiKey ?. apiKey } "`
476
482
}
477
483
return ''
0 commit comments