Commit Graph

241 Commits

Author SHA1 Message Date
magmueller 70d2e194e4 Include time later to enable prompt caching 2025-02-01 11:54:08 -08:00
magmueller 947ef4d3ea Filter out interessting information 2025-02-01 00:58:55 -08:00
magmueller 0b10682651 Process sensitive data 2025-02-01 00:44:48 -08:00
Sean Gu 0f9ec409ec Merge branch 'browser-use:main' into record_screenshot_when_not_use_vission 2025-01-30 17:48:55 +08:00
Sean Gu 9638191e3b Feature/Record screenshots in AgentHistory even when use_vision=False 2025-01-30 17:29:11 +08:00
Arun Sharma 04b0b17f4b deepseek-r1 compatibility 2025-01-26 10:58:16 -08:00
magmueller 82aa17d8fb Add follow up tasks examples 2025-01-25 23:30:51 -08:00
magmueller bc029639b1 Deepseek r1 working draft 2025-01-25 18:19:12 -08:00
Magnus Müller 1739a6b194 Merge pull request #376 from Riddhimaan-Senapati/main
added "import json" to browser_use/agent/message_manager/service.py
2025-01-24 22:22:59 -08:00
magmueller 623880e83b Merge branch 'main' into context 2025-01-24 22:19:43 -08:00
magmueller ffeb82659d Added context option e.g. for tutorials or previous messages 2025-01-24 22:18:23 -08:00
Riddhimaan-Senapati aa667f6455 added "import json" to browser_use/agent/message_manager/service.py
This fixes this issue: https://github.com/browser-use/browser-use/issues/371
2025-01-24 15:46:32 -05:00
magmueller 50afe37743 Remove the memory leak in llm.get_num_tokens(text). 2025-01-24 09:29:41 -08:00
magmueller ea4456f153 Dont use anthropics tokinizer 2025-01-19 12:43:59 -08:00
magmueller d86c47c96b Count tool_call tokens and reorder messages 2025-01-19 12:20:43 -08:00
magmueller 717e60b77c Include empty tool mesage for openai 2025-01-19 11:35:29 -08:00
magmueller 41ebcddab6 Automaticlly detect function calling method to fix structured output for ChatOpenAI and upgrade to langchain-openai>=0.3.0 2025-01-19 11:33:20 -08:00
magmueller f6928747d5 Fix task instruction to be more clear and less likly end up in hallucination 2025-01-12 18:05:37 -08:00
magmueller 1a86635b1c For default models like openai - include tool call in content because otherwise they need a response with the id 2025-01-07 08:22:43 -08:00
magmueller bc2ddd5d17 Error handling 2025-01-07 07:31:52 -08:00
Pascal Schärli c1c43777df Remove unused import 2025-01-06 22:42:37 +01:00
Pascal Schärli 18bf231b18 Fix: Add example AI Message to increase likelyhood that first message is formatted correctly 2025-01-06 22:33:26 +01:00
Pascal Schärli aa6cec04e3 Fix: Properly format Tool Calls in Message History 2025-01-06 22:33:18 +01:00
Gregor Žunič 3650c59497 added task steps information 2024-12-05 23:31:17 +01:00
magmueller 81e33566a4 Prompt improvement and set max actions per step 2024-12-03 14:20:40 +01:00
magmueller 60fbbcae93 Split HistoryTreeProcessor in views and service 2024-12-03 09:26:17 +01:00
magmueller 5128b6f0c4 Multiaction works 2024-12-01 22:02:41 +01:00
magmueller 90ef74aceb Removed num_clicks, fixed type valuation -> evaluation, and multiaction with output list 2024-12-01 21:49:57 +01:00
magmueller 75d9239e5f Cut errors in output, include attributes in state and rerun only k steps 2024-12-01 12:15:40 +01:00
magmueller f6d2097130 Cut error message in history messages 2024-11-30 11:39:02 +01:00
magmueller 6669a436c7 Merge remote-tracking branch 'origin/gregpr07/bu-85-make-iframes-and-shadow-elements-work-with-dom-service' into feature/reexecutable-script 2024-11-28 06:55:14 +01:00
Gregor Žunič 829ed138fd clicking version - still missing iframe/shadow elements penetration 2024-11-25 21:45:05 +01:00
magmueller d2e3de97d5 Save cookies 2024-11-25 16:56:15 +01:00
magmueller e326844fa9 First remove state - dont remove old messages 2024-11-25 08:40:26 +01:00
magmueller 3c72d8aaaa Stress test 2024-11-24 20:44:19 +01:00
magmueller c4ee7db940 Message manager 2024-11-24 19:55:55 +01:00
magmueller 4057e1527e Tests for message manager 2024-11-24 19:55:20 +01:00
magmueller e6e1d22e9c Error for max token limit logger 2024-11-24 11:46:48 +01:00
magmueller 29668a6840 Mesage manager cut if too long 2024-11-24 02:01:34 +01:00
magmueller 2786152e58 Include state manager 2024-11-24 01:21:04 +01:00
magmueller 8a90a8855a Work in progress - message manager 2024-11-22 10:32:37 +01:00