fix: add double quotes to curl command generation (#3337)

This commit is contained in:
Ítalo Johnny 2024-08-14 11:36:00 -03:00 committed by GitHub
commit 493b73f9d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,8 +28,8 @@ export function getCurlRunCode(
!isAuth ? `\n -H 'x-api-key: <your 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}}'
`;
}