You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/api/api.tsx
+13-10Lines changed: 13 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -262,12 +262,13 @@ while (true) {
262
262
${endpoint}`
263
263
264
264
case'python':
265
-
return`import requests
265
+
return`import os
266
+
import requests
266
267
267
268
response = requests.post(
268
269
"${endpoint}",
269
270
headers={
270
-
"X-API-Key": process.env.SIM_API_KEY,
271
+
"X-API-Key": os.environ.get("SIM_API_KEY"),
271
272
"Content-Type": "application/json",
272
273
"X-Execution-Mode": "async"
273
274
},
@@ -316,11 +317,12 @@ console.log(job); // Contains job_id for status checking`
0 commit comments