From b1ef10e79b6ddfd04d0fb107dc0f6864f0c270d3 Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Thu, 21 Sep 2023 12:06:26 -0300 Subject: [PATCH] Refactor: update Code Tabs PopUp with api_key --- src/frontend/src/utils/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/utils/utils.ts b/src/frontend/src/utils/utils.ts index 4d9c73f3d..667be3d0a 100644 --- a/src/frontend/src/utils/utils.ts +++ b/src/frontend/src/utils/utils.ts @@ -368,7 +368,7 @@ export function getCurlCode( window.location.host }/api/v1/process/${flowId} \\ -H 'Content-Type: application/json' \\ - -d '{"inputs": ${inputs}, "tweaks": ${ + -d '{"inputs": ${inputs},"api_key": "...", "tweaks": ${ tweak && tweak.length > 0 ? buildTweakObject(tweak) : JSON.stringify(tweaks, null, 2) @@ -426,6 +426,7 @@ chat_input_field: Input key that you want the chat to send the user message with ` : "" }host_url="http://localhost:7860" + api_key="..." >`; }