From 493b73f9d83491250d683b055ac09c8be7c1f09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Johnny?= Date: Wed, 14 Aug 2024 11:36:00 -0300 Subject: [PATCH] fix: add double quotes to curl command generation (#3337) --- src/frontend/src/modals/apiModal/utils/get-curl-code.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/modals/apiModal/utils/get-curl-code.tsx b/src/frontend/src/modals/apiModal/utils/get-curl-code.tsx index b60b8c31b..93a128187 100644 --- a/src/frontend/src/modals/apiModal/utils/get-curl-code.tsx +++ b/src/frontend/src/modals/apiModal/utils/get-curl-code.tsx @@ -28,8 +28,8 @@ export function getCurlRunCode( !isAuth ? `\n -H 'x-api-key: '\\` : "" } -d '{"input_value": "message", - "output_type": ${hasChatOutput ? "chat" : "text"}, - "input_type": ${hasChatInput ? "chat" : "text"}, + "output_type": ${hasChatOutput ? '"chat"' : '"text"'}, + "input_type": ${hasChatInput ? '"chat"' : '"text"'}, "tweaks": ${tweaksString}}' `; }