Update cURL command with new Content-Type header

This commit is contained in:
Yongtae
2023-07-17 14:11:06 +09:00
parent b5a41be7db
commit 6804216c6a
@@ -319,7 +319,7 @@ query(formData).then((response) => {
} else if (codeLang === 'cURL') {
return `curl ${baseURL}/api/v1/prediction/${dialogProps.chatflowid} \\
-X POST \\${getConfigExamplesForCurl(configData, 'formData')} \\
-H "Content-Type: application/json"`
-H "Content-Type: multipart/form-data"`
}
return ''
}
@@ -366,7 +366,7 @@ query(formData).then((response) => {
} else if (codeLang === 'cURL') {
return `curl ${baseURL}/api/v1/prediction/${dialogProps.chatflowid} \\
-X POST \\${getConfigExamplesForCurl(configData, 'formData')} \\
-H "Content-Type: application/json" \\
-H "Content-Type: multipart/form-data" \\
-H "Authorization: Bearer ${selectedApiKey?.apiKey}"`
}
return ''