add missing backslash for curl

This commit is contained in:
Henry 2023-05-22 01:41:05 +01:00
parent 2ffd26b147
commit 3718563442
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ query({"question": "Hey, how are you?"}).then((response) => {
} else if (codeLang === 'cURL') {
return `curl ${baseURL}/api/v1/prediction/${dialogProps.chatflowid} \\
-X POST \\
-d '{"question": "Hey, how are you?"}'
-d '{"question": "Hey, how are you?"}' \\
-H "Authorization: Bearer ${selectedApiKey?.apiKey}"`
} else if (codeLang === 'Embed') {
return embedCode(dialogProps.chatflowid)