perf: set shorter timeout for playwright and make it configurable

This commit is contained in:
genjuro
2025-03-20 14:58:38 +08:00
parent 70550e41fc
commit 07098c6352
3 changed files with 22 additions and 4 deletions

View File

@@ -2081,6 +2081,12 @@ PLAYWRIGHT_WS_URI = PersistentConfig(
os.environ.get("PLAYWRIGHT_WS_URI", None),
)
PLAYWRIGHT_GOTO_TIMEOUT = PersistentConfig(
"PLAYWRIGHT_GOTO_TIMEOUT",
"rag.web.loader.engine.playwright.goto.timeout",
int(os.environ.get("PLAYWRIGHT_GOTO_TIMEOUT", "10")),
)
FIRECRAWL_API_KEY = PersistentConfig(
"FIRECRAWL_API_KEY",
"firecrawl.api_key",