mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
bc70696f4f
commit
7292cee868
2 changed files with 2 additions and 2 deletions
|
|
@ -2074,7 +2074,7 @@ async def process_web(
|
|||
):
|
||||
config = await get_retrieval_config()
|
||||
try:
|
||||
content, docs = await run_in_threadpool(get_content_from_url, request, form_data.url)
|
||||
content, docs = await get_content_from_url(request, form_data.url)
|
||||
log.debug(f'text_content: {content}')
|
||||
|
||||
if process:
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ async def fetch_url(
|
|||
return json.dumps({'error': 'Request context not available'})
|
||||
|
||||
try:
|
||||
content, _ = await asyncio.to_thread(get_content_from_url, __request__, url)
|
||||
content, _ = await get_content_from_url(__request__, url)
|
||||
|
||||
# Truncate if configured (WEB_FETCH_MAX_CONTENT_LENGTH)
|
||||
# Guard: content may be None if the web loader silently failed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue