Skip to content

Commit dac64dc

Browse files
committed
accept apiKey in model_client_options
1 parent fe4dcb8 commit dac64dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stagehand/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ def __init__(
185185
self.local_browser_launch_options = (
186186
self.config.local_browser_launch_options or {}
187187
)
188-
self.model_client_options["apiKey"] = self.model_api_key
188+
if self.model_api_key:
189+
self.model_client_options["apiKey"] = self.model_api_key
189190

190191
# Handle browserbase session create params
191192
self.browserbase_session_create_params = make_serializable(

0 commit comments

Comments
 (0)