Commit Graph

29 Commits

Author SHA1 Message Date
Saurav Panda e29cdeae06 fix(tests): bump retired claude-sonnet-4-0 to claude-sonnet-4-6
Anthropic retired Claude Sonnet 4 (claude-sonnet-4-0 /
claude-sonnet-4-20250514) on 2026-06-15. The live-API model test in
tests/ci/models/test_llm_anthropic.py pinned that alias, so every CI run
now gets a 404 not_found_error and the agent never completes the task,
failing the models/test_llm_anthropic job on all branches.

Bump the test to the current GA Sonnet (claude-sonnet-4-6).
2026-06-26 12:22:17 +08:00
Saurav Panda 47a52790a6 chore(llm): remove bu-3 / bu-3-max, default beta example to openai/gpt-5.5
Drop the bu-3 and bu-3-max model ids everywhere they were surfaced:
- ChatBrowserUse no longer lists them as valid bu-* aliases (provider-prefixed
  ids like openai/gpt-5.5 are still accepted by the gateway).
- Remove their custom pricing entries and the README pricing blocks.
- Update docstrings, README quickstart, and the beta_agent example to use
  openai/gpt-5.5 as the default, with bu-2-0 shown as a commented alternative.
- Drop the tests that asserted bu-3/bu-3-max acceptance and pricing.
2026-06-11 22:50:30 +05:30
Saurav Panda 4cbc5dfa4d feat(llm): accept provider-prefixed models in ChatBrowserUse
ChatBrowserUse now accepts provider-prefixed model ids (anthropic/*,
openai/*, google/*) alongside the bu-* aliases and browser-use/* models,
so a single BROWSER_USE_API_KEY can reach them. bu-* aliases and the
bu-latest -> bu-2-0 normalization are unchanged; bare ids are rejected
with guidance toward the provider/model form.

Also matches provider-prefixed Claude Sonnet ids in the Agent
llm_screenshot_size auto-config, so the screenshot optimization isn't
lost when Claude is reached via ChatBrowserUse.

Adds an example, a README FAQ entry, and tests.

ENG-5060
2026-06-10 12:03:51 +05:30
Magnus Müller 65f6b3493f Expose terminal SDK tools by default 2026-06-05 18:33:03 +00:00
Magnus Müller 474a06b0c1 Deduplicate Rust SDK history usage 2026-06-05 18:18:23 +00:00
Magnus Müller 1474c60da1 Merge remote-tracking branch 'upstream/main' into magnus/browser-use-rust-core-integration
# Conflicts:
#	browser_use/__init__.py
#	browser_use/agent/service.py
#	browser_use/browser/watchdogs/downloads_watchdog.py
#	browser_use/code_use/utils.py
#	browser_use/llm/models.py
#	browser_use/tokens/service.py
#	browser_use/utils.py
2026-06-04 16:14:57 +00:00
Magnus Müller 9c9fa4d722 Resolve Anthropic default LLM names 2026-06-03 17:00:36 +00:00
MagMueller 22939a2580 Revert "feat(llm/google): forward cached_content into generate_content (#4889)"
This reverts commit 5a745a8502, reversing
changes made to 640360e9b7.
2026-05-23 12:03:38 -07:00
Saurav Panda df063f9068 feat(llm/google): forward cached_content into generate_content
Adds a cached_content field on ChatGoogle (and a per-call kwarg on
ainvoke) that gets threaded into the GenerateContentConfigDict before
each generate_content call. This lets callers point Gemini at an
explicit CachedContent resource (e.g. "cachedContents/abc123") instead
of relying on implicit caching, which is constrained by the ~5-minute
TTL window.

Token accounting already pulls cached_content_token_count from
response.usage_metadata into ChatInvokeUsage.prompt_cached_tokens, so
the savings show up in usage stats without further work.

Cache creation itself (client.caches.create) is left to the caller —
this PR only adds the forwarding hook so explicit caching becomes
opt-in usable. A follow-up can wire agent-side cache lifecycle if
useful.
2026-05-22 17:54:04 -07:00
Saurav Panda b00c41b66b chore(llm): recommend gemini-3-flash-preview in examples and tests
- add gemini-3-flash-preview-lite to VerifiedGeminiModels and token mappings
- list both gemini-3-flash-preview[-lite] alongside existing -latest aliases in CLOUD.md and api-v2.md SupportedLLMs
- swap example code and recommendations (examples/, AGENTS.md, quickstart.md, bug report placeholder) to gemini-3-flash-preview / -lite
- update Google CI test + evaluate_tasks judge LLM to gemini-3-flash-preview / -lite
2026-05-22 10:47:58 -07:00
Mark McDonald 115199d2ba fix: handle types.HttpOptionsDict better, add more tests 2026-05-22 14:30:40 +08:00
Mark McDonald 2eb3e3cded feat: add client header to GoogleChat
Added header per integration
[guidelines](https://ai.google.dev/gemini-api/docs/partner-integration).
2026-05-22 14:20:24 +08:00
Saurav Panda 29c9f1a416 feat: add support for openai responses model 2025-12-22 22:16:56 -08:00
matt-greathouse d3f60a76fe Remove stripping of required fields from gemini optimized schema 2025-10-31 15:54:51 -04:00
Magnus Müller 3a1db137bb api key not required 2025-10-25 18:00:18 -07:00
Magnus Müller 9313097a84 Remove openrouter 2025-10-25 10:27:06 -07:00
Magnus Müller 16d8833048 Api key rename 2025-10-25 10:24:40 -07:00
Magnus Müller 3742377fa3 Linter 2025-10-25 10:20:40 -07:00
Magnus Müller f60fedb01d Env 2025-10-25 10:20:31 -07:00
Magnus Müller 6e31a05acd Split model tests 2025-10-25 10:16:46 -07:00
Magnus Müller 5b481ac5ee Linter 2025-10-25 09:59:37 -07:00
Magnus Müller ba79f4df88 Linter 2025-10-25 09:59:30 -07:00
Magnus Müller a991e19d75 Remove some models 2025-10-25 09:58:59 -07:00
Magnus Müller a8cb8bae12 Remove deepseek 2025-10-25 09:56:38 -07:00
Magnus Müller 19df83f7ab Linter 2025-10-25 09:51:07 -07:00
Magnus Müller 8ac418b17f No api key fails in github 2025-10-25 09:50:59 -07:00
Magnus Müller c342442a0b Linter 2025-10-25 09:38:28 -07:00
Magnus Müller 8a76853837 Basic model test 2025-10-25 09:36:56 -07:00
Magnus Müller c1982936c9 Organize tests 2025-10-25 09:09:54 -07:00