Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Disable timeout for generate request [WIP]

Tomas Valentae6887f9ee55f
diff --git a/api-service/app.py b/api-service/app.py
index 9ce095602..10e79e0ec 100644
--- a/api-service/app.py
+++ b/api-service/app.py
@@ -5,7 +5,7 @@ from pprint import pprint
from dotenv import load_dotenv
from typing import List
from playground_client.exceptions import NotFoundException
-from quart import Quart, request
+from quart import Quart, make_response, request
from quart_cors import cors
from codegen import Codegen
@@ -47,6 +47,10 @@ async def health():
async def generate():
body = await request.json
+ response = await make_response()
+ response.timeout = None # type: ignore
+ # response.timeout = 1 # type: ignore
+
run_id = str(uuid.uuid4())
project_id = body["projectID"]
route_id = body["routeID"]