[codex] add browser-use provider#80
Draft
MagMueller wants to merge 1 commit into
Draft
Conversation
c559433 to
bd52a1a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
browser-useprovider/backend to the terminal CLI and SDK pathbu-3-maxas the default modelrust_agentwhile leaving existing OpenAI, Anthropic, OpenRouter, DeepSeek, Codex, and fake paths unchangedValidation
cargo fmtcargo test -p browser-use-llm build_body_merges_provider_options_without_overriding_core_fieldscargo test -p browser-use-agent browser_usecargo test -p browser-use-agent provider_backend_covers_all_variantscargo test -p browser-use-cli cli_browser_use_backend_defaults_to_bu3_maxSummary by cubic
Adds a first-class
browser-useprovider to the CLI and SDK, routed through the Browser Use LLM Gateway withbu-3-maxas the default model. Requests are taggedrust_agent, and provider options are merged into OpenAI-compatible bodies without overriding core fields.New Features
BrowserUsebackend and provider idbrowser-use, defaulting tohttps://llm.api.browser-use.com/v1.browser-use,browser_use, orbrowseruse; SDK resolves to theBrowserUsebackend.run_browser_useandrun_browser_use_session(default modelbu-3-max).BROWSER_USE_API_KEYorLLM_BROWSER_BROWSER_USE_API_KEY; optionalLLM_BROWSER_BROWSER_USE_BASE_URL.provider_options: { "request_type": "rust_agent" }and merges provider options safely into the request body.Migration
BROWSER_USE_API_KEYorLLM_BROWSER_BROWSER_USE_API_KEY(or runauth login browser-use-cloud).Written for commit bd52a1a. Summary will update on new commits.