Commit Graph

1537 Commits

Author SHA1 Message Date
Nick Sweeting 7aefb50b4d 30sec is a little harsh, lower it 2025-05-04 18:48:08 +08:00
Nick Sweeting 8e6f4688d3 fix inverted condition 2025-05-04 18:16:43 +08:00
Nick Sweeting beae1bff32 rename active_page to current_page for consistency 2025-05-04 17:51:34 +08:00
Nick Sweeting db2271305a show massive security warning if sensitive_data is set without allowed_domains restriction 2025-05-04 17:51:09 +08:00
Dharmendra Singh b76265d36f Rebase the brach and include CLA 2025-05-04 11:40:02 +05:30
Alezander9 d754ba9f47 add urls_visited to posthog info 2025-05-03 14:41:56 -07:00
Nick Sweeting d08b402101 finish updating last few locations where nested window_size was used 2025-05-04 00:29:29 +08:00
Alezander9 7082d33d2a refactor telemetry event to have only one event per agent run 2025-05-02 12:05:04 -07:00
Nick Sweeting 4f08369128 fix linter 2025-05-03 00:59:18 +08:00
Nick Sweeting 2b71f33f7e Support Azure OpenAI API GPT-4 (#1532) 2025-05-02 09:58:20 -07:00
Nick Sweeting 2be4ba4f70 more pyupgrade changes 2025-05-02 20:50:21 +08:00
Nick Sweeting 66b3c26df5 add pyupgrade to lint rules 2025-05-02 15:21:23 +08:00
Nick Sweeting 78148a96f9 remove unneeded noqas 2025-05-02 15:20:00 +08:00
Max Comperatore 9289e0f7f2 Support Azure OpenAI API GPT-4 2025-05-01 14:09:43 +00:00
Magnus Müller ffcde32832 Refactor _set_browser_use_version_and_source to accept an optional source parameter 2025-05-01 20:06:12 +08:00
Magnus Müller db29a1c9d5 Track the source with an parameter 2025-05-01 20:04:31 +08:00
Nick Sweeting 3f97915045 Merge branch 'main' into feat/playwright-script-generation 2025-04-30 03:53:33 -07:00
Nick Sweeting 38ab6c156c fix linter 2025-04-30 16:01:33 +08:00
RogelioRichmanAstronaut 0e5c676504 fix: Apply pre-commit linting fixes and improve Playwright example script execution
- Applied automated linting suggestions from pre-commit hooks, primarily updating type hints (e.g., Dict -> dict) and organizing imports.
- Refactored Playwright script execution in examples/features/playwright_script_generation.py to use asyncio.create_subprocess_exec for asynchronous handling and real-time log streaming, resolving ASYNC221 lint error and improving output visibility.
2025-04-30 00:05:36 -05:00
RogelioRichmanAstronaut 83b21d3124 Fix: Update Playwright script generator imports to use patchright
Update imports in Playwright script generation and helper files to use `patchright` instead of `playwright`, aligning with current project dependencies.

Co-Authored-By: Nick Sweeting <511499+pirate@users.noreply.github.com>
2025-04-29 23:32:09 -05:00
RogelioRichmanAstronaut fea4e7759c Refactor: Extract Playwright script helpers to separate file
Moved helper functions (replace_sensitive_data, _try_locate_and_act, PlaywrightActionError) from a multiline string within PlaywrightScriptGenerator into browser_use/agent/playwright_script_helpers.py.

    This allows linters and type checkers to analyze the helper code, improving maintainability and code quality. The generator now reads the helper file content dynamically.

Co-Authored-By: Nick Sweeting <511499+pirate@users.noreply.github.com>
2025-04-29 23:25:44 -05:00
RogelioRichmanAstronaut c7fbc7e071 Chore: Remove unnecessary LLM comments
Remove comments automatically added by the LLM in agent-related files.

Removed comments from:
- browser_use/agent/playwright_script_generator.py
- browser_use/agent/service.py
- browser_use/agent/views.py

These comments were redundant and cluttered the code.
2025-04-29 20:23:44 -05:00
Nick Sweeting 05c89118ea Merge pull request #1257 from KamilU01/main 2025-04-29 09:40:19 -07:00
Nick Sweeting 51f09b85aa Merge branch 'main' into feat/playwright-script-generation 2025-04-28 20:11:41 -07:00
Nick Sweeting 5a8d15ecf1 Merge pull request #1478 from Ekac00/fix-gif-chinese 2025-04-27 13:35:39 -07:00
Nick Sweeting 07b5b36976 fix linter issues 2025-04-28 04:34:16 +08:00
Nick Sweeting f3f42cf7f8 Update browser_use/agent/gif.py 2025-04-27 16:26:14 -04:00
Nick Sweeting 753f29ce37 Apply suggestions from code review 2025-04-27 16:24:42 -04:00
Nick Sweeting 1c4f523630 simplify and remove chinese comments in source code 2025-04-27 16:24:21 -04:00
Nick Sweeting d781a3faab fix lint errors 2025-04-28 04:06:19 +08:00
Nick Sweeting 072de0dcf8 no need to make a dict just to unwrap it immediately 2025-04-27 16:02:17 -04:00
shyanilMishra c94e8e4f7c Handle empty model output action with retry and safe fallback part 2 2025-04-27 23:02:08 +05:30
Ekac00 a683ae94bc Merge branch 'fix-gif-chinese' of https://github.com/Ekac00/browser-use into fix-gif-chinese 2025-04-27 17:31:40 +08:00
Ekac00 5ed79628ab Modify the comment language to English 2025-04-27 17:30:28 +08:00
Nick Sweeting c0c3ab19bc fix import order 2025-04-26 23:26:14 -04:00
Nick Sweeting b4e3732208 linter fixes 2025-04-26 23:18:13 -04:00
Nick Sweeting caa6681797 Merge branch 'main' into fix-gif-chinese 2025-04-26 20:14:20 -07:00
Nick Sweeting 5185a46071 Merge branch 'main' into optional-disable-mem0-telemetry 2025-04-26 20:14:07 -07:00
Nick Sweeting a6d9aab000 Update browser_use/agent/memory/service.py 2025-04-26 20:45:51 -04:00
Nick Sweeting 510d2ecd72 Update browser_use/agent/memory/service.py 2025-04-26 20:45:11 -04:00
Prenit Wankhede 0b21e50ca6 allow providing chrome_remote_debugging_port in browser config. fix launching user provided chrome browser. 2025-04-26 15:11:25 +04:00
Ekac00 f485877f3a fix a little issue 2025-04-26 11:27:17 +08:00
Ekac00 402f4e159f fix gif chinese display 修复gif中文显示异常 2025-04-26 11:21:23 +08:00
Ekac00 f4844e0e76 fix gif chinese display修复gif中中文显示异常 2025-04-26 10:50:01 +08:00
vfdev 9eab9fd08b Optionally disable mem0 telemetry 2025-04-24 23:25:50 +02:00
Kamil Ujec b8a8170d2a Added support for gemma instruction-tuned models 2025-04-24 20:25:27 +02:00
paul2048 1bd95cf987 address comment 2025-04-22 23:21:48 +01:00
paul2048 015089cceb Add back new lines 2025-04-22 14:37:31 +01:00
paul2048 b07d0dc431 fix confusing error message 2025-04-22 14:25:51 +01:00
Nick Sweeting 3f97c7ec7b remove dead _verification_task code 2025-04-22 02:23:36 -07:00