Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Change exec/js url when running in dev/pro
Vasek Mlejnskyce840aad652d
diff --git a/api-service/codegen/tools/javascript/eval.py b/api-service/codegen/tools/javascript/eval.pyindex 73a13a3ec..ed24be027 100644--- a/api-service/codegen/tools/javascript/eval.py+++ b/api-service/codegen/tools/javascript/eval.py@@ -1,8 +1,11 @@import requests-import sys+import os-url = "http://localhost:3000/api/exec/js"-# url = "https://ai-api-gray.vercel.app/api/exec/js"++if os.environ.get("ENV") == "dev":+ url = "http://localhost:3000/api/exec/js"+else:+ url = "https://ai-api-gray.vercel.app/api/exec/js"def eval(code: str):