mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 21:35:19 +00:00
FIX: Playwright Timeout (ms) interpreted as seconds
Fix for Playwright Timeout (ms) interpreted as seconds. To address https://github.com/open-webui/open-webui/issues/16801 In Frontend Playwright Timeout is setted as (ms), but in backend is interpreted as (s) doing a time conversion for playwright_timeout var (that have to be in ms). & as _Originally posted by @rawbby in [#16801](https://github.com/open-webui/open-webui/issues/16801#issuecomment-3216782565)_ > I personally think milliseconds are a reasonable choice for the timeout. Maybe the conversion should be fixed, not the label. > This would further not break existing configurations from users that rely on their current config. >
This commit is contained in:
parent
dafedf5675
commit
093af754e7
1 changed files with 1 additions and 1 deletions
|
|
@ -614,7 +614,7 @@ def get_web_loader(
|
||||||
WebLoaderClass = SafeWebBaseLoader
|
WebLoaderClass = SafeWebBaseLoader
|
||||||
if WEB_LOADER_ENGINE.value == "playwright":
|
if WEB_LOADER_ENGINE.value == "playwright":
|
||||||
WebLoaderClass = SafePlaywrightURLLoader
|
WebLoaderClass = SafePlaywrightURLLoader
|
||||||
web_loader_args["playwright_timeout"] = PLAYWRIGHT_TIMEOUT.value * 1000
|
web_loader_args["playwright_timeout"] = PLAYWRIGHT_TIMEOUT.value
|
||||||
if PLAYWRIGHT_WS_URL.value:
|
if PLAYWRIGHT_WS_URL.value:
|
||||||
web_loader_args["playwright_ws_url"] = PLAYWRIGHT_WS_URL.value
|
web_loader_args["playwright_ws_url"] = PLAYWRIGHT_WS_URL.value
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue