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}}' `; }