Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix api server hot reload and debug mode
Tomas Valentab3196a17a3be
diff --git a/api-service/app.py b/api-service/app.pyindex ad674b47e..48ba0399a 100644--- a/api-service/app.py+++ b/api-service/app.py@@ -93,3 +93,6 @@ async def generate():finally:if playground is not None:playground.close()++if __name__ == "__main__":+ app.run(debug=True, use_reloader=True)\ No newline at end of filediff --git a/package.json b/package.jsonindex bf8eacfd6..971a7e077 100644--- a/package.json+++ b/package.json@@ -6,7 +6,7 @@"dev": "npx concurrently -p none \"next dev\" \"yarn start:api\" \"yarn start:playground\"","dev:api-service": "npx concurrently \"yarn start:api\" \"yarn start:playground\"","build": "next build",- "start:api": "cd api-service && PYTHONUNBUFFERED=1 exec poetry run gunicorn app:app --bind 0.0.0.0:5000 -k uvicorn.workers.UvicornWorker --reload --timeout 0",+ "start:api": "cd api-service && PYTHONUNBUFFERED=1 exec poetry run python app.py","start:playground": "cd api-service/playground && yarn dev","install:api-service": "cd api-service && poetry install && cd playground && yarn","start": "next start",