mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
Update cURL command with new Content-Type header
This commit is contained in:
@@ -319,7 +319,7 @@ query(formData).then((response) => {
|
|||||||
} else if (codeLang === 'cURL') {
|
} else if (codeLang === 'cURL') {
|
||||||
return `curl ${baseURL}/api/v1/prediction/${dialogProps.chatflowid} \\
|
return `curl ${baseURL}/api/v1/prediction/${dialogProps.chatflowid} \\
|
||||||
-X POST \\${getConfigExamplesForCurl(configData, 'formData')} \\
|
-X POST \\${getConfigExamplesForCurl(configData, 'formData')} \\
|
||||||
-H "Content-Type: application/json"`
|
-H "Content-Type: multipart/form-data"`
|
||||||
}
|
}
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
@@ -366,7 +366,7 @@ query(formData).then((response) => {
|
|||||||
} else if (codeLang === 'cURL') {
|
} else if (codeLang === 'cURL') {
|
||||||
return `curl ${baseURL}/api/v1/prediction/${dialogProps.chatflowid} \\
|
return `curl ${baseURL}/api/v1/prediction/${dialogProps.chatflowid} \\
|
||||||
-X POST \\${getConfigExamplesForCurl(configData, 'formData')} \\
|
-X POST \\${getConfigExamplesForCurl(configData, 'formData')} \\
|
||||||
-H "Content-Type: application/json" \\
|
-H "Content-Type: multipart/form-data" \\
|
||||||
-H "Authorization: Bearer ${selectedApiKey?.apiKey}"`
|
-H "Authorization: Bearer ${selectedApiKey?.apiKey}"`
|
||||||
}
|
}
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user