Skip to content

Commit a611115

Browse files
authored
temporarily patch custom defined llm clients on api (#864)
# why Serializing custom defined clients is not yet supported in the api # what changed If a custom LLM client is defined in the constructor, we log a warning and disable api mode # test plan
1 parent e77d018 commit a611115

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/loud-ties-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
Temporarily patch custom clients serialization error on api

lib/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,13 @@ export class Stagehand {
614614

615615
if (llmClient) {
616616
this.llmClient = llmClient;
617+
this.logger({
618+
category: "init",
619+
message:
620+
"Custom LLM clients are currently not supported in API mode",
621+
level: 1,
622+
});
623+
this.usingAPI = false;
617624
} else {
618625
try {
619626
// try to set a default LLM client

0 commit comments

Comments
 (0)