Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Include model for page_extraction_llm

Magnus Müller2cfe937724f6
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 59a3127b5..39905c579 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -126,6 +126,9 @@ class Agent(Generic[Context]):
#
context: Context | None = None,
):
+ if page_extraction_llm is None:
+ page_extraction_llm = llm
+
self.settings = AgentSettings(
use_vision=use_vision,
use_vision_for_planner=use_vision_for_planner,