Skip to content

Commit

Permalink
revert workspace change
Browse files Browse the repository at this point in the history
  • Loading branch information
yzld2002 committed Oct 1, 2024
1 parent b00715d commit 2b2d5bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vision_agent/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ def __init__(
_LOGGER.info(
f"E2BCodeInterpreter (sandbox id: {self.interpreter.sandbox_id}) initialized:\n{sys_versions}"
)
self.remote_path = Path(remote_path if remote_path is not None else WORKSPACE)
self.remote_path = Path(
remote_path if remote_path is not None else "/home/user"
)

def close(self, *args: Any, **kwargs: Any) -> None:
try:
Expand Down Expand Up @@ -713,7 +715,7 @@ def _get_e2b_env() -> Union[Dict[str, str], None]:
openai_api_key = os.getenv("OPENAI_API_KEY", "")
anthropic_api_key = os.getenv("ANTHROPIC_API_KEY", "")
if openai_api_key or anthropic_api_key:
envs = {}
envs = {"WORKSPACE": os.getenv("WORKSPACE", "/home/user")}
if openai_api_key:
envs["OPENAI_API_KEY"] = openai_api_key
if anthropic_api_key:
Expand Down

0 comments on commit 2b2d5bc

Please sign in to comment.