perf: set shorter timeout for playwright and make it configurable

This commit is contained in:
genjuro committed 2025-03-20 15:28:09 +08:00
1 parent 70550e41fc
commit 07098c6352
3 files changed
+22 -4

No files matched your search

+6
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",