feat: 修改output_path

This commit is contained in:
莘权 马 2024-06-05 12:11:45 +08:00
parent 04e72c0597
commit 4359abd84a
8 changed files with 83 additions and 73 deletions

View file

@ -1,11 +1,13 @@
from __future__ import annotations
import contextlib
from uuid import uuid4
from playwright.async_api import async_playwright
from metagpt.utils.file import MemoryFileSystem
from uuid import uuid4
from metagpt.const import DEFAULT_WORKSPACE_ROOT
from metagpt.tools.tool_registry import register_tool
from metagpt.utils.file import MemoryFileSystem
from metagpt.utils.parse_html import simplify_html
from metagpt.utils.report import BrowserReporter
@ -64,7 +66,6 @@ class Browser:
# Since RAG is an optional optimization, if it fails, the simplified HTML can be used as a fallback.
with contextlib.suppress(Exception):
from metagpt.rag.engines import SimpleEngine # avoid circular import
# TODO make `from_docs` asynchronous