mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1547] [MERGED] fix(tongyi): enable video processing for Qwen-VL-Plus model #1949
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/langgenius/dify-official-plugins/pull/1547
Author: @qiaofenlin
Created: 8/21/2025
Status: ✅ Merged
Merged: 8/21/2025
Merged by: @crazywoola
Base:
main← Head:fix/tongyi-video-processing📝 Commits (2)
a777272fix(tongyi): enable video processing for Qwen-VL-Plus model0ce4071update version📊 Changes
2 files changed (+10 additions, -14 deletions)
View changed files
📝
models/tongyi/manifest.yaml(+1 -1)📝
models/tongyi/models/llm/llm.py(+9 -13)📄 Description
Related Issues or Context
Related Issue: #1545 - Qwen-VL-Plus model cannot recognize video anomalies, but works fine with images
This PR fixes a critical issue where Qwen-VL-Plus model cannot process video content while image processing works normally. The error message was:
Root Cause Analysis:
_save_base64_image_to_filemethod but video had no equivalentSolution:
_save_base64_to_filemethod to handle all base64 data typesThis PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Before Fix:
_save_base64_image_to_fileand_save_base64_video_to_fileAfter Fix:
Video processing now works correctly with base64 data
Unified handling for both image and video using
_save_base64_to_fileEliminated code duplication and improved maintainability

My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
Code Changes Summary:
_save_base64_to_filemethod for unified base64 handling_save_base64_image_to_fileand_save_base64_video_to_fileVersion Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Version Bump: This is a PATCH version bump as it fixes a backward-compatible bug in video processing functionality.
Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
Testing Results:
SaaS Environment
Additional Notes
This fix addresses the issue reported in #1545 where Qwen-VL-Plus model cannot recognize video anomalies while working fine with images. The refactoring also improves code quality by eliminating duplication and creating a more maintainable codebase.
Files Changed:
models/tongyi/models/llm/llm.py- Main fix implementationTesting:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.