Skip to content

Commit 307a22f

Browse files
authored
Merge pull request #1 from miguelg719/main
2 parents f0e9646 + efb32f4 commit 307a22f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"dependencies": {
33
"@anthropic-ai/claude-agent-sdk": "^0.1.14",
44
"@browserbasehq/stagehand": "^2.5.2",
5+
"dotenv": "^17.2.3",
56
"sharp": "^0.34.4",
67
"zod": "^3.25.0"
78
},

stagehand-tools.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { existsSync, mkdirSync } from 'fs';
55
import { spawn, ChildProcess } from 'child_process';
66
import { join } from 'path';
77
import { findLocalChrome } from './browser-utils.js';
8+
import dotenv from 'dotenv';
9+
dotenv.config();
810

911
// Lazy loading of Stagehand instance
1012
let stagehandInstance: Stagehand | null = null;
@@ -97,6 +99,7 @@ async function getStagehand() {
9799
env: "LOCAL",
98100
verbose: 0,
99101
enableCaching: true,
102+
modelName: "anthropic/claude-sonnet-4-5-20250929",
100103
localBrowserLaunchOptions: {
101104
cdpUrl: `http://localhost:${cdpPort}`,
102105
},

0 commit comments

Comments
 (0)