mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
ca3563b3b4
commit
c58a4a0166
1 changed files with 2 additions and 1 deletions
|
|
@ -1176,6 +1176,7 @@ async def process_chat_payload(request, form_data, user, metadata, model):
|
||||||
files = form_data.pop("files", None)
|
files = form_data.pop("files", None)
|
||||||
|
|
||||||
prompt = get_last_user_message(form_data["messages"])
|
prompt = get_last_user_message(form_data["messages"])
|
||||||
|
if prompt and len(prompt or "") < 500 and (not files or len(files) == 0):
|
||||||
urls = extract_urls(prompt)
|
urls = extract_urls(prompt)
|
||||||
|
|
||||||
if files or urls:
|
if files or urls:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue