870 Commits

Author SHA1 Message Date
Saurav Panda 5953df7d2f fix(llm): make bu-2-0 the default again, keep mini opt-in
0.13.8 shipped bu-2-0-mini-preview as the ChatBrowserUse default, which
means Agent(task=...) with no llm - and every bare ChatBrowserUse() -
silently moved onto a preview model on upgrade, with no code change on
the caller's side.

Two problems with that. A preview id can change behaviour or be renamed,
so it is the wrong thing to reach by omission. And per-token price is the
wrong yardstick for an agent: total cost is tokens-per-step times steps,
and steps is a function of model quality, so a cheaper-per-token model
that needs more steps to finish can cost more and take longer. We do not
yet have a per-task benchmark number for mini to say which way that goes.

bu-2-0-mini-preview stays a first-class option: still accepted, still
priced, still what the examples demonstrate. It is just opted into by
name now rather than landed on by default. Revisit once the benchmark
number exists.
2026-08-17 09:19:26 -07:00
Saurav Panda 9be28bcea1 feat(llm): default ChatBrowserUse to bu-2-0-mini-preview
Adds bu-2-0-mini-preview as an accepted model id and makes it the
constructor default, so a bare ChatBrowserUse() now routes there.

bu-2-0 is unchanged: still accepted, still documented as the premium
option, and bu-latest still resolves to it. Keeping 'latest' on the
stable line means existing callers pinned to that alias do not silently
move onto a preview model; only the bare-constructor default moves.

Pricing is registered alongside the model so cost tracking does not
silently report $0 for what is now the default. This model has no cache
discount, so cached reads bill at the input rate.

Examples, README and the model reference are updated to the new default.
The model reference also claimed bu-latest resolved to bu-1-0, which has
not been true since bu-2-0 shipped; corrected here.
2026-08-13 11:05:57 -07:00
Pierre Raffalli d2411b4198 fix(mcp): update deprecated Bedrock Claude model identifier 2026-08-11 10:48:10 +02:00
Saurav Panda 5fd4e40efb Merge branch 'main' into saurav/pdf-header-footer-metadata 2026-06-15 11:37:09 +05:30
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 ad8f3a4dd7 feat(tools): print page metadata in save_as_pdf header/footer
The save_as_pdf action now renders page metadata into the PDF margins by
default, matching Chrome's Print dialog: the date in the header and the page
URL plus page numbers in the footer.

- Add display_header_footer (default True), header_template, and
  footer_template params to SaveAsPdfAction.
- Pass displayHeaderFooter + header/footer templates and explicit margins to
  CDP Page.printToPDF so the metadata has room to render (Chrome clips it
  otherwise, and defaults header/footer font-size to 0px).
- Default templates show the date / URL + page numbers; callers can override
  with custom HTML or disable entirely for a clean PDF.
2026-06-11 08:29:41 +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
Gregor Žunič 7a888eb9a4 Promote beta core package quickstart 2026-06-08 12:59:51 -07:00
Magnus Müller 911b036a8b Remove internal Rust eval artifacts 2026-06-05 00:23:24 +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 917988ec25 Preserve Python Agent default export 2026-06-03 17:45:34 +00:00
Magnus Müller 5d0a9529a3 Expose real_v8 smoke step timeout 2026-06-03 10:24:38 +00:00
Magnus Müller 6e06a564bc Add real v8 Rust agent smoke runner 2026-06-02 21:07:31 +00:00
Magnus Müller 3509784bdb Add Rust agent smoke example 2026-06-02 20:46:10 +00:00
Saurav Panda 5c54ef4197 chore(llm): rename flash-lite recommendation to gemini-3.1-flash-lite 2026-05-22 10:49:12 -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
Felix 553c211cd5 docs: clarify integration example placement 2026-05-17 21:05:33 +10:00
Laith Weinberger 43b5e4ce1d rm code agent 2026-03-21 02:05:42 -04:00
Laith Weinberger c9efcb1404 fix vercel gateway: correct extra_body paths, model list, and reasoning_models 2026-03-12 22:22:22 -04:00
AntonVishal 54d9173324 Enhance ChatVercel model support and update API key handling 2026-03-04 15:43:36 +05:30
Saurav Panda 8270346ccf improved csv file generation 2026-02-25 11:45:05 -08:00
Saurav Panda 95215d6211 Add save_as_pdf agent action for CDP-based page-to-PDF export 2026-02-24 18:35:34 -08:00
laithrw 2249e75fd8 Merge branch 'main' into improving-real-browser 2026-02-20 19:28:06 -05:00
reformedot 75431077fb Merge branch 'feat/add-custom-headers-support-and-example' of github.com:browser-use/browser-use into feat/add-custom-headers-support-and-example 2026-02-17 21:49:14 -08:00
reformedot d4d5533327 refactor: implement custom headers injection via a watchdog in the example 2026-02-17 21:49:05 -08:00
Aitor 802f17cf91 Merge branch 'main' into feat/add-custom-headers-support-and-example 2026-02-18 06:22:42 +01:00
reformedot de659f9768 feat: add custom headres support + add example 2026-02-17 21:15:11 -08:00
laithrw 878c735973 Merge branch 'main' into improving-real-browser 2026-01-30 19:27:55 -05:00
Saurav Panda 20f4f2a984 switched to bu-2-0 in all the examples 2026-01-29 18:04:44 -08:00
Saurav Panda c011c529fc feat: add bu-2-0 pricing 2026-01-27 10:35:41 -08:00
Laith Weinberger d8aef72702 lint 2026-01-27 11:58:25 -05:00
Laith Weinberger 77160b7d79 feat: add Browser.from_system_chrome() for real browser auto-detection
- auto-detects chrome executable and user data dir on macos/windows/linux
- auto-selects first available profile if none specified
- added Browser.list_chrome_profiles() to see available profiles
- updated examples to prompt user for profile selection
- fixed missing browser.stop() in save_cookies.py
2026-01-27 11:52:48 -05:00
Saurav Panda 6d54f521cf set default gemini thinking to auto 2026-01-26 12:44:51 -08:00
Saurav Panda f3aad3c145 Added browser use 2-0 support 2026-01-23 13:17:56 -08:00
Saurav Panda 37586c9e9f Added support for new browser use model 2026-01-23 12:39:10 -08:00
Saurav Panda 2c06eabf5f Added ax-name fallback for history rerun. 2026-01-06 12:07:10 -08:00
LarsenCundric 10b2623f17 Remove search from v1 2026-01-03 14:26:57 +01:00
Saurav Panda fe6e8d47e1 fixed azure openai chat with gpt-5.1-codex 2025-12-23 18:04:30 -08:00
Saurav Panda 29c9f1a416 feat: add support for openai responses model 2025-12-22 22:16:56 -08:00
mertunsall 5e5c84c81c simplify 2025-12-19 04:06:00 +01:00
Cursor Agent b79dffeca4 feat: Enable flash mode for Agent in bu_oss example
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-12-16 22:06:49 +00:00
mertunsall 781f6eb95e coment 2025-12-15 18:32:52 -08:00
mertunsall a58b9307ab BU OSS IS COMING 2025-12-15 14:04:18 -08:00
mertunsall 9b894150d5 fix structured output for sandboxes 2025-12-12 15:35:34 -08:00
Gregor Žunič 90b704b1bf skills example 2025-12-09 16:39:48 -08:00
Gregor Žunič 91cdc8b3b3 added proper output types 2025-12-08 18:18:58 -08:00
Saurav Panda a4e77e2070 Merge branch 'main' into add-ai-step-for-extraction 2025-12-03 09:14:26 -08:00
Saurav Panda d0e181216e feat: added fallback llm support 2025-12-03 18:53:29 +05:30
mertunsall 3ffd26fbe0 fix example 2025-12-02 00:10:54 -08:00
Saurav Panda 7d2c6dc79e AI: add ai_step to replace extract_content on rerun 2025-12-01 21:34:09 +05:30