mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
chore: update daytona sdk and proxy endpoint (#9664)
Signed-off-by: Ivan Dagelic <dagelic.ivan@gmail.com>
This commit is contained in:
@@ -50,7 +50,6 @@ class DaytonaRuntime(ActionExecutionClient):
|
||||
daytona_api_key = os.getenv('DAYTONA_API_KEY')
|
||||
if not daytona_api_key:
|
||||
raise ValueError('DAYTONA_API_KEY environment variable is required for Daytona runtime')
|
||||
|
||||
daytona_api_url = os.getenv('DAYTONA_API_URL', 'https://app.daytona.io/api')
|
||||
daytona_target = os.getenv('DAYTONA_TARGET', 'eu')
|
||||
|
||||
@@ -129,9 +128,7 @@ class DaytonaRuntime(ActionExecutionClient):
|
||||
|
||||
def _construct_api_url(self, port: int) -> str:
|
||||
assert self.sandbox is not None, 'Sandbox is not initialized'
|
||||
assert self.sandbox.runner_domain is not None, 'Runner domain is not available'
|
||||
|
||||
return f'https://{port}-{self.sandbox.id}.{self.sandbox.runner_domain}'
|
||||
return self.sandbox.get_preview_link(port).url
|
||||
|
||||
@property
|
||||
def action_execution_server_url(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user