Skip to content

Commit 7ded4b5

Browse files
committed
patch api agent config
1 parent 7f38b3a commit 7ded4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ export class Stagehand {
931931
: instructionOrOptions;
932932

933933
if (this.usingAPI) {
934-
const agentConfigForApi: AgentConfig = options;
934+
const agentConfigForApi: AgentConfig = options ?? {};
935935

936936
return await this.apiClient.agentExecute(
937937
agentConfigForApi,

0 commit comments

Comments
 (0)