diff --git a/examples/integrations/temporal/README.md b/examples/integrations/temporal/README.md index 9daaa7f..3efa328 100644 --- a/examples/integrations/temporal/README.md +++ b/examples/integrations/temporal/README.md @@ -43,7 +43,7 @@ npm install ``` BROWSERBASE_API_KEY=your_api_key BROWSERBASE_PROJECT_ID=your_project_id -ANTHROPIC_API_KEY=your_anthropic_key # or OPENAI_API_KEY +OPENAI_API_KEY=your_openai_key # or ANTHROPIC_API_KEY depending on the model you choose ``` 3. Start Temporal (if not already running): diff --git a/examples/integrations/temporal/src/research-activities.ts b/examples/integrations/temporal/src/research-activities.ts index 45b1481..4cf5090 100644 --- a/examples/integrations/temporal/src/research-activities.ts +++ b/examples/integrations/temporal/src/research-activities.ts @@ -92,19 +92,25 @@ export async function initializeBrowser(): Promise { simulateNetworkDisconnect('browser initialization'); const config: ConstructorParams = { - verbose: 1, + verbose: 0, domSettleTimeoutMs: 8000, env: "BROWSERBASE", apiKey: process.env.BROWSERBASE_API_KEY, + modelName: "openai/gpt-4o", + modelClientOptions: { + apiKey: process.env.OPENAI_API_KEY, + }, browserbaseSessionCreateParams: { - proxies: true, + // Only available in paid plans + // proxies: true, projectId: process.env.BROWSERBASE_PROJECT_ID!, browserSettings: { viewport: { width: 1024, height: 768 }, - advancedStealth: true + // Only available on Scale Plans + // advancedStealth: true } }, }; @@ -172,9 +178,9 @@ export async function navigateToSearchPage(session: BrowserSession): Promise