Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix API param change

Tomas Valenta8259a516d485
diff --git a/api-service/app.py b/api-service/app.py
index 617bcbde1..df63d01fa 100644
--- a/api-service/app.py
+++ b/api-service/app.py
@@ -41,7 +41,6 @@ async def generate():
run_id = str(uuid.uuid4())
project_id = body["projectID"]
model_config = body["modelConfig"]
- prompt = body["prompt"]
await db.create_deployment(run_id=run_id, project_id=project_id)
playground = None
@@ -62,7 +61,7 @@ async def generate():
tools=list(tools),
model_config=model_config,
database=db,
- prompt=prompt,
+ prompt=model_config["prompt"],
)
# Generate the code