You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/api/cua/agent/browserbase.ts
+40-37Lines changed: 40 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -38,14 +38,14 @@ export class BrowserbaseBrowser extends BasePlaywrightComputer {
38
38
privateprojectId: string;
39
39
privatesession: BrowserbaseSession|null=null;
40
40
privateregion: string;
41
-
privateproxy: boolean;
41
+
privateproxies: boolean;
42
42
privatesessionId: string|null;
43
43
44
44
constructor(
45
45
width: number=1024,
46
46
height: number=768,
47
-
region: string="us-west-2",
48
-
proxy: boolean=false,
47
+
region: string="us-east-1",
48
+
proxies: boolean=true,
49
49
sessionId: string|null=null
50
50
){
51
51
/**
@@ -54,18 +54,18 @@ export class BrowserbaseBrowser extends BasePlaywrightComputer {
54
54
* @param width - The width of the browser viewport. Default is 1024.
55
55
* @param height - The height of the browser viewport. Default is 768.
56
56
* @param region - The region for the Browserbase session. Default is "us-west-2". Pick a region close to you for better performance. https://docs.browserbase.com/guides/multi-region
57
-
* @paramproxy - Whether to use a proxy for the session. Default is False. Turn on proxies if you're browsing is frequently interrupted. https://docs.browserbase.com/features/proxies
57
+
* @paramproxies - Whether to use a proxy for the session. Default is False. Turn on proxies if you're browsing is frequently interrupted. https://docs.browserbase.com/features/proxies
58
58
* @param sessionId - Optional. If provided, use an existing session instead of creating a new one.
59
59
*/
60
60
super();
61
61
// We're using a dynamic import here as a workaround since we don't have the actual types
62
62
// In a real project, you would install the proper types and import correctly
0 commit comments