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