Skip to content

Commit 61ed2e0

Browse files
authored
serialize experimental for api enabled features (#182)
1 parent 1bef512 commit 61ed2e0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

stagehand/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ async def _create_session(self):
6666
if hasattr(self, "model_client_options") and self.model_client_options:
6767
payload["modelClientOptions"] = self.model_client_options
6868

69+
if hasattr(self, "experimental") and self.experimental:
70+
payload["experimental"] = self.experimental
71+
6972
def get_version(package_str):
7073
try:
7174
result = version(package_str)

stagehand/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def __init__(
263263
self.context: Optional[StagehandContext] = None
264264
self.use_api = self.config.use_api
265265
self.experimental = self.config.experimental
266-
if self.experimental or self.env == "LOCAL":
266+
if self.env == "LOCAL":
267267
self.use_api = False
268268
if (
269269
self.browserbase_session_create_params

0 commit comments

Comments
 (0)