Skip to content

Commit a0efb60

Browse files
authored
fixes for docs - python/constructors (#862)
# why Fix bug in python docs and update configuration section # what changed # test plan
1 parent 11b1d41 commit a0efb60

File tree

3 files changed

+344
-11
lines changed

3 files changed

+344
-11
lines changed

docs/get_started/integrate_stagehand.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ For Python: We require Python 3.9+ and recommend using [uv](https://docs.astral.
135135
config = StagehandConfig(
136136
env="LOCAL",
137137
model_name="openai/gpt-4.1-mini",
138-
model_client_options={"apiKey": os.getenv("MODEL_API_KEY")}
138+
model_api_key=os.getenv("MODEL_API_KEY")
139139
)
140140

141141
stagehand = Stagehand(config)

docs/get_started/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ async def main():
218218
api_key=os.getenv("BROWSERBASE_API_KEY"),
219219
project_id=os.getenv("BROWSERBASE_PROJECT_ID"),
220220
model_name="gpt-4o",
221-
model_client_options={"apiKey": os.getenv("MODEL_API_KEY")}
221+
model_api_key=os.getenv("MODEL_API_KEY")
222222
)
223223

224224
stagehand = Stagehand(config)

0 commit comments

Comments
 (0)