mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #22247] [CLOSED] fix: video upload flow for multimodal vLLM chat #26571
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22247
Author: @shihanqu
Created: 3/4/2026
Status: ❌ Closed
Base:
main← Head:fix/video-upload-vllm-multimodal📝 Commits (1)
f0a1ad8Fix multimodal video uploads for vLLM chat flow📊 Changes
2 files changed (+54 additions, -14 deletions)
View changed files
📝
backend/open_webui/routers/files.py(+12 -3)📝
backend/open_webui/utils/middleware.py(+42 -11)📄 Description
Pull Request Checklist
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.fix:prefix.Changelog Entry
Description
video/*files are injected into the outgoing message payload asvideo_urlparts and media URLs are converted to base64 for both images and videos when needed.video/mp4by treating video uploads as completed for multimodal chat usage rather than forcing retrieval/text extraction processing.Added
process_chat_payloadfor injecting uploaded video files as{"type":"video_url", "video_url":{"url":...}}content parts.image_urlandvideo_urlitems.Changed
convert_url_images_to_base64toconvert_url_media_to_base64and generalized handling from image-only to image+video.Deprecated
Removed
Fixed
video/mp4chat uploads were marked as unsupported for processing.Security
Breaking Changes
Additional Information
/home/shihan/Downloads/N1cdUjctpG8.mp4in Open WebUI chat.video/mp4processing."No sources found"may still appear for video-only turns because no RAG citations are attached; this is expected and unchanged by this PR.Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.