Skip to content

Commit

Permalink
fix: add double quotes to curl command generation (#3337)
Browse files Browse the repository at this point in the history
  • Loading branch information
italojohnny authored Aug 14, 2024
1 parent 9035f11 commit 493b73f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/modals/apiModal/utils/get-curl-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}}'
`;
}
Expand Down

0 comments on commit 493b73f

Please sign in to comment.