Commit Graph

4189 Commits

Author SHA1 Message Date
kalil0321 103bd46677 Merge branch 'main' into attempt-fix-real-browser 2025-11-07 01:33:14 +01:00
mertunsall d3a88ce351 vision defaults to True 2025-11-06 16:29:09 -08:00
reformedot 29915de253 chore: linting 2025-11-06 16:26:10 -08:00
reformedot 052286e630 feat: improved navigate to URL event logic and wait mechanism 2025-11-06 16:20:51 -08:00
Mert Unsal 334d6963f1 Merge branch 'main' into fix-chinese-characters-jsondump 2025-11-06 15:05:30 -08:00
mertunsall 67d2f12665 default to PNG everywhere 2025-11-06 14:51:52 -08:00
mertunsall e68114662f fix linter 2025-11-06 13:59:23 -08:00
Mert Unsal df74aea00d Merge branch 'main' into cursor/add-judge-output-fields-for-task-impossibility-and-captcha-1107 2025-11-06 13:55:38 -08:00
Mert Unsal 8973e98ee0 Update browser_use/agent/service.py 2025-11-06 13:53:31 -08:00
Cursor Agent 714232bddd Add impossible task and captcha detection logging
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-06 21:52:11 +00:00
Magnus Müller 3cf6e1046b include kimi-2 2025-11-06 13:49:20 -08:00
Mert Unsal c4e2dfb39a Update browser_use/agent/views.py 2025-11-06 13:42:38 -08:00
Mert Unsal 2a9eae7ec5 Update browser_use/agent/service.py 2025-11-06 13:41:06 -08:00
Cursor Agent cb814da33e Add impossible_task and reached_captcha to JudgementResult
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-06 21:38:18 +00:00
karamvirsingh1998 4330164f95 fix: prevent KeyError crash in OpenAI reasoning models
Fix KeyError that occurs when using OpenAI reasoning models (o1, o3, etc.)
with temperature=None or frequency_penalty=None.

The code was using 'del' to remove keys that may not exist in model_params
dictionary. Changed to use .pop() with default value for safe key removal.

Fixes crash scenario:
- ChatOpenAI(model='o1-mini', temperature=None) -> KeyError

Changes:
- Replace 'del model_params[key]' with 'model_params.pop(key, None)'
- Ensures parameters are safely removed even if not present in dict
2025-11-06 12:04:25 +05:30
skools-here f8686f4012 Fix: display Chinese characters correctly in conversation logs by using ensure_ascii=False 2025-11-04 19:49:27 +05:30
kalil0321 da4dc43aa2 Merge branch 'main' into attempt-fix-real-browser 2025-11-04 12:56:36 +01:00
mertunsall 1bb380734e improve judge printing 2025-11-03 17:06:59 -08:00
Mert Unsal 1e690a2083 Merge branch 'main' into mert/read_image_and_docx 2025-11-03 17:00:14 -08:00
mertunsall 03c9e94dc6 allow reading images such as jpg/png, as well as docx, fixes to the flash system prompt 2025-11-03 16:41:27 -08:00
Cursor Agent 6f392b6775 Improve judge result console output to reduce noise
Only display judge results when:
- Self-reported success and judge verdict disagree
- Agent reports failure (shows full judge result)

Changes:
- Hide judge output when both self-reported success and judge agree task succeeded
- Show warning when agent reports success but judge thinks it failed
- Keep existing behavior for all other cases (show full judge result)

This reduces console clutter for successful tasks while highlighting discrepancies.
2025-11-04 00:09:42 +00:00
Magnus Müller 7405c92f1f Merge branch 'main' into set-price-for-bu-model 2025-11-03 14:52:40 -08:00
Magnus Müller 3c99e03936 set price for bu model 2025-11-03 14:49:12 -08:00
Mert Unsal d8f41efb75 Merge branch 'main' into mert/click_by_coordinate 2025-11-03 14:28:22 -08:00
mertunsall 29ec2cacb6 improve judge logging to laminar and separate code 2025-11-03 13:04:34 -08:00
kalil0321 680c71bdec Merge branch 'main' into attempt-fix-real-browser 2025-11-03 16:21:58 +01:00
Magnus Müller ff51f1e520 Add custom pricing for 'bu-latest' model in custom_pricing.py
- Introduced pricing details for the 'bu-latest' model, specifying input and output costs per token, along with cache read costs.
- This update enhances the pricing structure for better cost management in the Browser-Use library.
2025-11-02 21:34:07 -08:00
Magnus Müller 821472ba0b Update CodeAgent to use CodeAgentTools and add custom pricing for new models
- Refactored CodeAgent to utilize CodeAgentTools instead of the generic Tools class for enhanced functionality.
- Introduced custom pricing for 'bu-latest' and 'smart' models, specifying input and output costs per token, along with cache read costs.

This update improves the agent's tool capabilities and introduces new pricing structures for better cost management.
2025-11-02 21:32:53 -08:00
Matt Greathouse 38d102c90d Merge branch 'main' into fix-gemini-schema 2025-11-02 07:39:10 -05:00
Matt Greathouse 663299629d Merge branch 'main' into fix-gemini-schema 2025-11-01 19:23:49 -04:00
kalil0321 9fe82f083d Add CodeAgentHistoryList for improved history management 2025-11-01 23:45:18 +01:00
Alezander9 87e54e9e8e make use_judge on by default 2025-11-01 15:39:50 -07:00
Alezander9 bf15d159da address cubic comments and clean up new example 2025-11-01 15:37:38 -07:00
Alezander9 f1b0473645 Merge remote-tracking branch 'upstream/main' into library-judge 2025-11-01 15:25:55 -07:00
Alezander9 4396b416da pass along a new param request_type when using ChatBrowserUse to flag special handling for judge 2025-11-01 15:25:24 -07:00
mertunsall 61779863bc option to not force structured output 2025-11-01 14:20:26 -07:00
Mert Unsal bc7b353316 Merge branch 'main' into mert/click_by_coordinate 2025-11-01 14:00:09 -07:00
mertunsall 4dca53282c add clicking by coordinate 2025-11-01 13:58:15 -07:00
Cursor Agent 596ada0540 Log full file path when writing to file
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-11-01 18:25:33 +00:00
Krishna Rathore 687f166a29 Updated openai logging 2025-11-01 22:33:35 +05:30
kalil0321 64490fa963 Merge branch 'main' into add-vercel-ai-gateway 2025-11-01 15:34:46 +01:00
Alezander9 299cf6a9d0 Merge remote-tracking branch 'upstream/main' into library-judge 2025-10-31 21:03:23 -07:00
Alezander9 16faf74f9a fix cubic comments 2025-10-31 21:02:38 -07:00
Alezander9 4965e0d94c add library judge into telemetry event 2025-10-31 20:34:57 -07:00
Alezander9 10ec99dd26 have library judge show up in logs 2025-10-31 20:30:03 -07:00
Alezander9 15911c8c72 fix bugs in library judge and make it off by default 2025-10-31 20:20:36 -07:00
Alezander9 0f1946cb54 implement simple judge directly into the library on done action 2025-10-31 20:01:07 -07:00
Gregor Žunič 5e923a4942 renamed everything to sandbox 2025-10-31 14:25:31 -07:00
matt-greathouse d3f60a76fe Remove stripping of required fields from gemini optimized schema 2025-10-31 15:54:51 -04:00
Gregor Žunič 5e428e829b Merge branch 'main' into feature/remote-code 2025-10-31 12:19:39 -07:00