Commit Graph

6557 Commits

Author SHA1 Message Date
Magnus Müller
382bbd45fc Include thinking_budget -1 2025-09-19 23:14:28 -07:00
Magnus Müller
e8389ef26b Longer memory 2025-09-19 22:53:04 -07:00
Magnus Müller
beccb530f2 Flash prompt more memory 2025-09-19 22:31:50 -07:00
Magnus Müller
653fa4206f Automaticlly set reasoning budget to 0 for 2.5 flash, because we do it with thinking for memory 2025-09-19 22:21:37 -07:00
Magnus Müller
15f1a50895 Force thinking 2025-09-19 22:04:43 -07:00
Magnus Müller
fbcde93cad Force no thinking 2025-09-19 19:40:33 -07:00
Magnus Müller
af1fe232f1 Forse thinking -1 2025-09-19 19:39:18 -07:00
Magnus Müller
7e2d4de32c Timing 2025-09-19 19:36:53 -07:00
Magnus Müller
0aa3163693 Include response in parsing 2025-09-19 19:21:48 -07:00
Magnus Müller
b72dea7972 Improve error logging in ChatGoogle class by including response details in the error message when no response is received from the model. 2025-09-19 19:15:44 -07:00
Magnus Müller
819aa77838 Update thinking_budget handling in ChatGoogle class to use dynamic value 2025-09-19 19:14:21 -07:00
Magnus Müller
72f1585f9a Remove presence_penalty 2025-09-19 18:24:05 -07:00
Magnus Müller
daf7937b73 Refactor API call handling in ChatGoogle class
- Removed the partial response capture wrapper method to simplify API call logic.
- Directly invoked API calls in multiple locations, improving readability and maintainability.
- Enhanced response handling to strip JSON wrappers from responses, ensuring proper parsing.
- Updated logging to provide clearer context during API interactions.

This change streamlines the API interaction process and improves error handling clarity.
2025-09-19 18:20:47 -07:00
Magnus Müller
77f34541bb Logging 2025-09-19 17:48:19 -07:00
Magnus Müller
f31b7e003d Force dynamic thinking 2025-09-19 17:38:07 -07:00
Magnus Müller
c4ba833bc4 thinking_budget 0 2025-09-19 17:18:04 -07:00
Gregor Žunič
e85a547378 version 0.7.9 0.7.9 2025-09-19 12:10:25 -07:00
Gregor Žunič
074efab0ec Actor Use (#3170)
<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Adds a new Actor API (Page, Element, Mouse) for low‑level,
Playwright‑like automation on CDP, integrated with BrowserSession.
Includes LLM-assisted element finding and content extraction, plus
CDP-based tab management.

- **New Features**
- New actor classes: Page, Element, Mouse with robust
click/fill/drag/select, mouse move/scroll, JS evaluate, screenshots.
- BrowserSession integration: new_page, get_pages, get_current_page,
close_page, cookies; Browser alias preserved.
- LLM APIs on Page: get_element_by_prompt, must_get_element_by_prompt,
extract_content(Pydantic).
- Playgrounds and example custom function using the browser in tools;
removed legacy DOM playground; minor agent cleanup.

- **Documentation**
- New Actor docs: basics, examples, all-parameters; linked in
navigation.
  - Updated browser and tools docs to reference Actor usage.

<!-- End of auto-generated description by cubic. -->
2025-09-19 11:32:41 -07:00
Gregor Žunič
e1c418179d BrowserSession -> Browser 2025-09-19 11:28:42 -07:00
Gregor Žunič
0ceee655e3 Merge branch 'main' into feature/better-custom-actions 2025-09-19 11:23:42 -07:00
Gregor Žunič
cf2ec34e68 added actor to docs 2025-09-19 11:23:16 -07:00
Gregor Žunič
504f8cad09 migrated Target to Page 2025-09-19 10:27:00 -07:00
Saurav Panda
949bb3ae73 Fix temp creds for ChatAWSBedrock (#3120)
### Why do we need this PR?:
This PR fixes
[#3078](https://github.com/browser-use/browser-use/issues/3078), where
`ChatAWSBedrock `fails when using temporary AWS credentials (e.g.,
STS/SSO or role-chained). The root cause was that the class didn't
implement `AWS_SESSION_TOKEN`, unlike `ChatAnthropicBedrock`.

### Changes:

Add support for reading `AWS_SESSION_TOKEN `when initializing
`ChatAWSBedrock`.

Aligns behavior with `ChatAnthropicBedrock `for consistency.

### Impact:

Users relying on temporary credentials (via aws sts assume-role, SSO, or
chained roles) can now authenticate successfully.

No breaking changes for users with permanent credentials.

### Tested:

Verified with temporary credentials (`AWS_ACCESS_KEY_ID`,
`AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`, `AWS_REGION`).

Confirmed successful invocation of Bedrock models where it previously
failed with “The security token included in the request is invalid.”
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Fixes auth failures in ChatAWSBedrock with temporary AWS credentials by
supporting AWS_SESSION_TOKEN and passing it to the Bedrock client. Users
using STS/SSO/assume-role can authenticate successfully; permanent
credentials continue to work.

- **Bug Fixes**
- Read AWS_SESSION_TOKEN from env/params and include it when creating
the Bedrock client.
  - Updated error message and usage docs to mention AWS_SESSION_TOKEN.

<!-- End of auto-generated description by cubic. -->
2025-09-19 09:31:04 -07:00
Saurav Panda
80d6c2e5fc Merge branch 'main' into fix-temp-creds-bedrock 2025-09-18 23:56:10 -07:00
Saurav Panda
40af91f918 updated docs and added link to signup for a api key (#3160)
<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Adds a direct signup link for the Browser-Use API key to auth errors and
examples, and updates docs to use the correct use_cloud flag. Clarifies
how to supply a CDP URL from external providers and cleans up
wording/formatting in cloud examples.

<!-- End of auto-generated description by cubic. -->
2025-09-18 23:38:53 -07:00
Saurav Panda
9d2911196d Merge branch 'main' into saurav/fix-docs-for-cloud-browser 2025-09-18 23:30:01 -07:00
Magnus Müller
e8c7a8d4cd Log browser-use pip version on agent start (#3166)
Add an info log message at agent startup to display the newest
`browser-use` pip version and encourage users to upgrade.

---
[Slack
Thread](https://browser-use.slack.com/archives/D092QUQD6KA/p1758246823746979?thread_ts=1758246823.746979&cid=D092QUQD6KA)

<a
href="https://cursor.com/background-agent?bcId=bc-7249ebf3-45c9-499f-9ad9-d70f953790eb"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-cursor-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in
Cursor"
src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a
href="https://cursor.com/agents?id=bc-7249ebf3-45c9-499f-9ad9-d70f953790eb"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-web-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web"
src="https://cursor.com/open-in-web.svg"></picture></a>


    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
On agent startup, we now check PyPI for the latest browser-use version
and log an upgrade hint if a newer release is available. This keeps
users up to date without blocking startup.

- **New Features**
- Fetch latest version from PyPI with a 3s timeout; failures are
ignored.
- Log an info message when a newer version exists, including the upgrade
command: uv add browser-use@<latest_version>.

<!-- End of auto-generated description by cubic. -->
2025-09-18 21:46:06 -07:00
Cursor Agent
c4ed783a2b Refactor: Make version check async and use httpx
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-09-19 04:12:48 +00:00
Cursor Agent
a64c42bb41 Add check for latest browser-use version
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-09-19 01:57:51 +00:00
Magnus Müller
a8c97b3d78 update docs2 (#3165)
Auto-generated PR for: update docs2
2025-09-18 18:51:21 -07:00
Magnus Müller
206b01273d update docs2 2025-09-18 18:51:09 -07:00
Magnus Müller
ed053ad4c7 fix framework_events_script (#3164)
Auto-generated PR for: fix framework_events_script
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Fixes framework event triggering by binding to the element via this in
CDP Runtime.callFunctionOn, improving reliable focus/click/input
dispatch in SPAs. Also tweaks README example link copy.

- **Bug Fixes**
- Use this instead of arguments[0] in framework_events_script and stop
passing arguments to callFunctionOn, ensuring correct element binding
and consistent event firing.

<!-- End of auto-generated description by cubic. -->
2025-09-18 18:47:39 -07:00
Magnus Müller
f21a447533 fix framework_events_script 2025-09-18 18:44:15 -07:00
Saurav Panda
0820b1ca42 Merge branch 'saurav/fix-docs-for-cloud-browser' of https://github.com/browser-use/browser-use into saurav/fix-docs-for-cloud-browser 2025-09-18 18:42:45 -07:00
Saurav Panda
303be11758 remove set_use_cloud_from_env 2025-09-18 18:42:17 -07:00
Saurav Panda
8a0edad0cb Merge branch 'main' into saurav/fix-docs-for-cloud-browser 2025-09-18 18:39:29 -07:00
Magnus Müller
f40c424b3f improve-readme5 (#3163)
Auto-generated PR for branch: improve-readme5
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Updated README to link to the examples page in the docs instead of the
repo’s examples folder, so readers always see the latest examples.

<!-- End of auto-generated description by cubic. -->
2025-09-18 18:37:27 -07:00
Magnus Müller
11acb9ee5b Merge branch 'main' into improve-readme5 2025-09-18 18:37:12 -07:00
Magnus Müller
da32ee60e6 Update README.md 2025-09-18 18:36:32 -07:00
Saurav Panda
899cbc6f35 Merge branch 'main' into saurav/fix-docs-for-cloud-browser 2025-09-18 18:34:14 -07:00
Saurav Panda
ed81113b75 Update examples/cloud/05_search_api.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-18 18:33:52 -07:00
Magnus Müller
f5227e3745 improve-readme4 (#3162)
Auto-generated PR for branch: improve-readme4
2025-09-18 18:32:12 -07:00
Magnus Müller
0d707ccbe9 Merge branch 'main' into improve-readme4 2025-09-18 18:32:02 -07:00
Saurav Panda
4659f60c29 refc: made use_cloud false by default and added live_url to info 2025-09-18 18:31:59 -07:00
Magnus Müller
5f2b9c0a01 Update README.md 2025-09-18 18:31:47 -07:00
Magnus Müller
1a70e88cb0 improve-readme3 (#3161)
Auto-generated PR for branch: improve-readme3
2025-09-18 18:29:33 -07:00
Magnus Müller
d25f23f39a Merge branch 'main' into improve-readme3 2025-09-18 18:29:25 -07:00
Magnus Müller
52a0c1eb2f Update README.md 2025-09-18 18:29:11 -07:00
Magnus Müller
4cfa7ce61e improve-readme2 (#3159)
Auto-generated PR for branch: improve-readme2
2025-09-18 18:20:27 -07:00
Magnus Müller
2f9c8853a1 Merge branch 'main' into improve-readme2 2025-09-18 18:20:18 -07:00