Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Reorder example
magmueller46632d6435f0
diff --git a/examples/features/small_model_for_extraction.py b/examples/features/small_model_for_extraction.pyindex 6d1778ebc..e86e0235b 100644--- a/examples/features/small_model_for_extraction.py+++ b/examples/features/small_model_for_extraction.py@@ -8,18 +8,10 @@ from browser_use.controller.service import Controllerload_dotenv()-# Initialize the model-llm = ChatOpenAI(- model='gpt-4o',- temperature=0.0,-)-task = 'Find the founders of browser-use in ycombinator, extract all links and open the links one by one'---# smaller model to extract content+llm = ChatOpenAI(model='gpt-4o', temperature=0.0)small_llm = ChatOpenAI(model='gpt-4o-mini', temperature=0.0)--agent = Agent(task=task, llm=llm, max_actions_per_step=2, page_extraction_llm=small_llm)+task = 'Find the founders of browser-use in ycombinator, extract all links and open the links one by one'+agent = Agent(task=task, llm=llm, page_extraction_llm=small_llm)async def main():