Compare commits

..

No commits in common. "8f86dbbdacd27fcf84922f27c50d19ae4aa554f0" and "f3149503e323186033e8fa7e96554299fd19b2b3" have entirely different histories.

View file

@ -9,13 +9,6 @@ from urllib import error, request
from browser_use import Agent, Browser, ChatOpenAI
from pydantic import BaseModel, Field, ValidationError, field_validator
SPEED_OPTIMIZATION_PROMPT = """
Speed optimization instructions:
- Be extremely concise and direct in your responses
- Get to the goal as quickly as possible
- Use multi-action sequences whenever possible to reduce steps
"""
class RunTaskRequest(BaseModel):
"""RPC payload для запуска browser-use задачи."""
@ -82,13 +75,7 @@ async def run_browser_task(task: str) -> RunTaskSuccessResponse | RunTaskErrorRe
temperature=0.0,
)
agent = Agent(task=task,
llm=llm,
browser=browser,
flash_mode=True,
use_vision=False,
extend_system_message=SPEED_OPTIMIZATION_PROMPT,
)
agent = Agent(task=task, llm=llm, browser=browser)
try:
history = await agent.run()