@@ -349,7 +349,7 @@ class SimStudioError(Exception):
349349import os
350350from simstudio import SimStudioClient
351351
352- client = SimStudioClient(api_key = os.getenv(" SIM_API_KEY
352+ client = SimStudioClient(api_key = os.getenv(" SIM_API_KEY" ))
353353
354354def run_workflow ():
355355 try :
@@ -387,7 +387,7 @@ Behandeln Sie verschiedene Fehlertypen, die während der Workflow-Ausführung au
387387from simstudio import SimStudioClient, SimStudioError
388388import os
389389
390- client = SimStudioClient(api_key = os.getenv(" SIM_API_KEY" )
390+ client = SimStudioClient(api_key = os.getenv(" SIM_API_KEY" ))
391391
392392def execute_with_error_handling ():
393393 try :
@@ -600,7 +600,7 @@ Führe Workflows mit Echtzeit-Streaming-Antworten aus:
600600from simstudio import SimStudioClient
601601import os
602602
603- client = SimStudioClient(api_key = os.getenv(" SIM_API_KEY" )
603+ client = SimStudioClient(api_key = os.getenv(" SIM_API_KEY" ))
604604
605605def execute_with_streaming ():
606606 """ Execute workflow with streaming enabled."""
@@ -651,7 +651,7 @@ def stream_workflow():
651651 ' https://sim.ai/api/workflows/WORKFLOW_ID/execute' ,
652652 headers = {
653653 ' Content-Type' : ' application/json' ,
654- ' X-API-Key' : os.getenv(' SIM_API_KEY
654+ ' X-API-Key' : os.getenv(' SIM_API_KEY' )
655655 },
656656 json = {
657657 ' message' : ' Generate a story' ,
0 commit comments