mirror of
https://github.com/browser-use/browser-use
synced 2026-05-06 17:52:15 +02:00
14 lines
254 B
Python
14 lines
254 B
Python
import asyncio
|
|
|
|
from browser_use import Agent, ChatOpenAI
|
|
|
|
|
|
async def main():
|
|
task = 'Find the founders of browser-use'
|
|
agent = Agent(task=task, llm=ChatOpenAI(model='gpt-4.1-mini'))
|
|
await agent.run()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
asyncio.run(main())
|