migration to gemini-2.5-pro

This commit is contained in:
Krishav Raj Singh 2025-08-21 15:30:37 +05:30
parent a5dc0588a8
commit 168176fe3c
7 changed files with 11 additions and 11 deletions

View File

@ -150,7 +150,7 @@ class BrowserTool(SandboxToolsBase):
return True return True
else: else:
# If the browser api is not healthy, we need to restart the browser api # If the browser api is not healthy, we need to restart the browser api
model_api_key = config.OPENAI_API_KEY model_api_key = config.GEMINI_API_KEY
response = await self.sandbox.process.exec(f"curl -X POST 'http://localhost:8004/api/init' -H 'Content-Type: application/json' -d '{{\"api_key\": \"{model_api_key}\"}}'", timeout=90) response = await self.sandbox.process.exec(f"curl -X POST 'http://localhost:8004/api/init' -H 'Content-Type: application/json' -d '{{\"api_key\": \"{model_api_key}\"}}'", timeout=90)
if response.exit_code == 0: if response.exit_code == 0:
@ -333,7 +333,7 @@ class BrowserTool(SandboxToolsBase):
"properties": { "properties": {
"action": { "action": {
"type": "string", "type": "string",
"description": "The action to perform. Examples: 'click the login button', 'fill in the email field with test@example.com', 'scroll down to see more content', 'select option 2 from the dropdown', 'press Enter', 'go back', 'wait 5 seconds', 'click at coordinates 100,200', 'drag the file icon to the drop zone', 'select United States from the country dropdown'" "description": "The action to perform. Examples: 'click the login button', 'fill in the email field with %email%', 'scroll down to see more content', 'select option 2 from the dropdown', 'press Enter', 'go back', 'wait 5 seconds', 'click at coordinates 100,200', 'select United States from the country dropdown'"
}, },
"variables": { "variables": {
"type": "object", "type": "object",

View File

@ -20,7 +20,7 @@ You can modify the sandbox environment for development or to add new capabilitie
``` ```
cd backend/sandbox/docker cd backend/sandbox/docker
docker compose build docker compose build
docker push kortix/suna:0.1.3.6 docker push kortix/suna:0.1.3.7
``` ```
3. Test your changes locally using docker-compose 3. Test your changes locally using docker-compose

View File

@ -44,7 +44,7 @@ class BrowserAutomation {
logger: (logLine: LogLine) => { logger: (logLine: LogLine) => {
console.log(`[${logLine.category}] ${logLine.message}`); console.log(`[${logLine.category}] ${logLine.message}`);
}, },
modelName: "openai/gpt-5", modelName: "google/gemini-2.5-pro",
modelClientOptions: { modelClientOptions: {
apiKey apiKey
}, },

View File

@ -6,7 +6,7 @@ services:
dockerfile: ${DOCKERFILE:-Dockerfile} dockerfile: ${DOCKERFILE:-Dockerfile}
args: args:
TARGETPLATFORM: ${TARGETPLATFORM:-linux/amd64} TARGETPLATFORM: ${TARGETPLATFORM:-linux/amd64}
image: kortix/suna:0.1.3.6 image: kortix/suna:0.1.3.7
ports: ports:
- "6080:6080" # noVNC web interface - "6080:6080" # noVNC web interface
- "5901:5901" # VNC port - "5901:5901" # VNC port

View File

@ -280,8 +280,8 @@ class Configuration:
STRIPE_PRODUCT_ID_STAGING: str = 'prod_SCgIj3G7yPOAWY' STRIPE_PRODUCT_ID_STAGING: str = 'prod_SCgIj3G7yPOAWY'
# Sandbox configuration # Sandbox configuration
SANDBOX_IMAGE_NAME = "kortix/suna:0.1.3.6" SANDBOX_IMAGE_NAME = "kortix/suna:0.1.3.7"
SANDBOX_SNAPSHOT_NAME = "kortix/suna:0.1.3.6" SANDBOX_SNAPSHOT_NAME = "kortix/suna:0.1.3.7"
SANDBOX_ENTRYPOINT = "/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf" SANDBOX_ENTRYPOINT = "/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf"
# LangFuse configuration # LangFuse configuration

View File

@ -127,8 +127,8 @@ As part of the setup, you'll need to:
1. Create a Daytona account 1. Create a Daytona account
2. Generate an API key 2. Generate an API key
3. Create a Snapshot: 3. Create a Snapshot:
- Name: `kortix/suna:0.1.3.6` - Name: `kortix/suna:0.1.3.7`
- Image name: `kortix/suna:0.1.3.6` - Image name: `kortix/suna:0.1.3.7`
- Entrypoint: `/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf` - Entrypoint: `/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf`
## Manual Configuration ## Manual Configuration

View File

@ -669,8 +669,8 @@ class SetupWizard:
f"Visit {Colors.GREEN}https://app.daytona.io/dashboard/snapshots{Colors.ENDC}{Colors.CYAN} to create a snapshot." f"Visit {Colors.GREEN}https://app.daytona.io/dashboard/snapshots{Colors.ENDC}{Colors.CYAN} to create a snapshot."
) )
print_info("Create a snapshot with these exact settings:") print_info("Create a snapshot with these exact settings:")
print_info(f" - Name:\t\t{Colors.GREEN}kortix/suna:0.1.3.6{Colors.ENDC}") print_info(f" - Name:\t\t{Colors.GREEN}kortix/suna:0.1.3.7{Colors.ENDC}")
print_info(f" - Snapshot name:\t{Colors.GREEN}kortix/suna:0.1.3.6{Colors.ENDC}") print_info(f" - Snapshot name:\t{Colors.GREEN}kortix/suna:0.1.3.7{Colors.ENDC}")
print_info( print_info(
f" - Entrypoint:\t{Colors.GREEN}/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf{Colors.ENDC}" f" - Entrypoint:\t{Colors.GREEN}/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf{Colors.ENDC}"
) )