mirror of
https://github.com/browser-use/web-ui.git
synced 2026-03-22 11:17:17 +08:00
Merge pull request #569 from tayyabakmal1/main
Update browser-use version requirements.txt 0.1.45
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
browser-use==0.1.42
|
||||
browser-use==0.1.45
|
||||
pyperclip==1.9.0
|
||||
gradio==5.27.0
|
||||
json-repair
|
||||
@@ -7,4 +7,4 @@ MainContentExtractor==0.0.4
|
||||
langchain-ibm==0.3.10
|
||||
langchain_mcp_adapters==0.0.9
|
||||
langgraph==0.3.34
|
||||
langchain-community
|
||||
langchain-community
|
||||
|
||||
@@ -8,7 +8,6 @@ from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, TypedDict
|
||||
|
||||
from browser_use.browser.browser import BrowserConfig
|
||||
from browser_use.browser.context import BrowserContextWindowSize
|
||||
from langchain_community.tools.file_management import (
|
||||
ListDirectoryTool,
|
||||
ReadFileTool,
|
||||
@@ -107,9 +106,8 @@ async def run_single_browser_task(
|
||||
|
||||
context_config = CustomBrowserContextConfig(
|
||||
save_downloads_path="./tmp/downloads",
|
||||
browser_window_size=BrowserContextWindowSize(
|
||||
width=window_w, height=window_h
|
||||
),
|
||||
window_width=window_w,
|
||||
window_height=window_h,
|
||||
force_new_context=True,
|
||||
)
|
||||
bu_browser_context = await bu_browser.new_context(config=context_config)
|
||||
|
||||
@@ -42,7 +42,10 @@ class CustomBrowserContext(BrowserContext):
|
||||
bypass_csp=self.config.disable_security,
|
||||
ignore_https_errors=self.config.disable_security,
|
||||
record_video_dir=self.config.save_recording_path,
|
||||
record_video_size=self.config.browser_window_size.model_dump(),
|
||||
record_video_size={
|
||||
"width": self.config.window_width,
|
||||
"height": self.config.window_height
|
||||
},
|
||||
record_har_path=self.config.save_har_path,
|
||||
locale=self.config.locale,
|
||||
http_credentials=self.config.http_credentials,
|
||||
|
||||
@@ -13,7 +13,7 @@ from browser_use.agent.views import (
|
||||
AgentOutput,
|
||||
)
|
||||
from browser_use.browser.browser import BrowserConfig
|
||||
from browser_use.browser.context import BrowserContext, BrowserContextWindowSize
|
||||
from browser_use.browser.context import BrowserContext
|
||||
from browser_use.browser.views import BrowserState
|
||||
from gradio.components import Component
|
||||
from langchain_core.language_models.chat_models import BaseChatModel
|
||||
@@ -485,9 +485,8 @@ async def run_agent_task(
|
||||
if save_recording_path
|
||||
else None,
|
||||
save_downloads_path=save_download_path if save_download_path else None,
|
||||
browser_window_size=BrowserContextWindowSize(
|
||||
width=window_w, height=window_h
|
||||
),
|
||||
window_width=window_w,
|
||||
window_height=window_h,
|
||||
)
|
||||
if not webui_manager.bu_browser:
|
||||
raise ValueError("Browser not initialized, cannot create context.")
|
||||
|
||||
Reference in New Issue
Block a user