From 371856344265b4da2fc22a1de8ccd46c8dcd0e3a Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 22 May 2023 01:41:05 +0100 Subject: [PATCH] add missing backslash for curl --- packages/ui/src/ui-component/dialog/APICodeDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/ui-component/dialog/APICodeDialog.js b/packages/ui/src/ui-component/dialog/APICodeDialog.js index e59d9a3d5ba..94001528199 100644 --- a/packages/ui/src/ui-component/dialog/APICodeDialog.js +++ b/packages/ui/src/ui-component/dialog/APICodeDialog.js @@ -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)