Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Set default domain even if the env variable is an empty string (#813)
Jakub Novák10aab1d7d677
diff --git a/.changeset/happy-pens-fetch.md b/.changeset/happy-pens-fetch.mdnew file mode 100644index 000000000..710bc98a1--- /dev/null+++ b/.changeset/happy-pens-fetch.md@@ -0,0 +1,5 @@+---+'@e2b/python-sdk': patch+---++Set default domain even if the env variable is an empty stringdiff --git a/packages/python-sdk/e2b/connection_config.py b/packages/python-sdk/e2b/connection_config.pyindex 1d72581a4..232860f43 100644--- a/packages/python-sdk/e2b/connection_config.py+++ b/packages/python-sdk/e2b/connection_config.py@@ -16,7 +16,7 @@ class ConnectionConfig:@staticmethoddef _domain():- return os.getenv("E2B_DOMAIN", "e2b.app")+ return os.getenv("E2B_DOMAIN") or "e2b.app"@staticmethoddef _debug():@@ -78,6 +78,7 @@ class ConnectionConfig:def get_request_timeout(self, request_timeout: Optional[float] = None):return self._get_request_timeout(self.request_timeout, request_timeout)+Username = Literal["root", "user"]"""User used for the operation in the sandbox.