Skip to content
Merged
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
1 change: 1 addition & 0 deletions src/tools/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ const BROWSER_USE_LLM_SCHEMA = {
"claude-3-5-sonnet-20241022",
"claude-3-5-haiku-20241022",
"gemini-2.0-flash",
"gemini-3.8-flash",
],
default: "gemini-2.0-flash",
};
Expand Down
5 changes: 4 additions & 1 deletion src/types/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export type BrowserUseLlm =
| "claude-3-5-sonnet-20241022"
| "claude-3-5-haiku-20241022"
| "gemini-2.0-flash"
| "gemini-2.5-flash";
| "gemini-2.5-flash"
| "gemini-3.8-flash";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Browser-use schema rejects new model

When an OpenAI or Anthropic strict tool definition selects gemini-3.8-flash for llm, plannerLlm, or pageExtractionLlm, BrowserUseLlm accepts the value but BROWSER_USE_LLM_SCHEMA omits it, causing strict validation to reject or exclude the newly supported model.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/types/constants.ts
Line: 52

Comment:
**Browser-use schema rejects new model**

When an OpenAI or Anthropic strict tool definition selects `gemini-3.8-flash` for `llm`, `plannerLlm`, or `pageExtractionLlm`, `BrowserUseLlm` accepts the value but `BROWSER_USE_LLM_SCHEMA` omits it, causing strict validation to reject or exclude the newly supported model.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Codex


export type ClaudeComputerUseLlm =
| "claude-opus-5"
Expand Down Expand Up @@ -90,10 +91,12 @@ export type HyperAgentLlm =
| "claude-sonnet-4-5"
| "claude-sonnet-4-6"
| "gemini-2.5-flash"
| "gemini-3.8-flash"
| "gemini-3.7-flash"
| "gemini-3-flash-preview";

export type GeminiComputerUseLlm =
| "gemini-3.8-flash"
| "gemini-3.7-flash"
| "gemini-3.6-flash"
| "gemini-3.5-flash"
Expand Down