This commit is contained in:
Timothy Jaeryang Baek 2025-10-06 18:42:24 -05:00
parent ca3563b3b4
commit c58a4a0166
1 changed files with 2 additions and 1 deletions

View File

@ -1176,7 +1176,8 @@ 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 = extract_urls(prompt)
if prompt and len(prompt or "") < 500 and (not files or len(files) == 0):
urls = extract_urls(prompt)
if files or urls:
if not files: