Skip to content

temporarily patch custom defined llm clients on api #864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/loud-ties-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@browserbasehq/stagehand": patch
---

Temporarily patch custom clients serialization error on api
7 changes: 7 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,13 @@ export class Stagehand {

if (llmClient) {
this.llmClient = llmClient;
this.logger({
category: "init",
message:
"Custom LLM clients are currently not supported in API mode",
level: 1,
});
this.usingAPI = false;
} else {
try {
// try to set a default LLM client
Expand Down