From 7ada6beb3c9541d808176e189396efc5a1637eef Mon Sep 17 00:00:00 2001 From: Kylejeong2 Date: Wed, 13 Aug 2025 15:50:20 -0700 Subject: [PATCH 1/2] flags for advanced stealth and proxies, set default model --- examples/integrations/temporal/README.md | 2 +- examples/integrations/temporal/src/research-activities.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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..af2d805 100644 --- a/examples/integrations/temporal/src/research-activities.ts +++ b/examples/integrations/temporal/src/research-activities.ts @@ -96,14 +96,20 @@ export async function initializeBrowser(): Promise { 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 }, + // Only available on Scale Plans advancedStealth: true } }, From b5964e299690e194918e7339c420a5004370bcc4 Mon Sep 17 00:00:00 2001 From: Kylejeong2 Date: Thu, 14 Aug 2025 16:30:26 -0700 Subject: [PATCH 2/2] change to brave search, comment out proxies and advanced stealth --- .../integrations/temporal/src/research-activities.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/integrations/temporal/src/research-activities.ts b/examples/integrations/temporal/src/research-activities.ts index af2d805..4cf5090 100644 --- a/examples/integrations/temporal/src/research-activities.ts +++ b/examples/integrations/temporal/src/research-activities.ts @@ -92,7 +92,7 @@ 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, @@ -102,7 +102,7 @@ export async function initializeBrowser(): Promise { }, browserbaseSessionCreateParams: { // Only available in paid plans - proxies: true, + // proxies: true, projectId: process.env.BROWSERBASE_PROJECT_ID!, browserSettings: { viewport: { @@ -110,7 +110,7 @@ export async function initializeBrowser(): Promise { height: 768 }, // Only available on Scale Plans - advancedStealth: true + // advancedStealth: true } }, }; @@ -178,9 +178,9 @@ export async function navigateToSearchPage(session: BrowserSession): Promise