mirror of https://github.com/kortix-ai/suna.git
migration to gemini-2.5-pro
This commit is contained in:
parent
a5dc0588a8
commit
168176fe3c
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -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}"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue