mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2266] [MERGED] bugfix: add support for glm-4.6v #2363
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/2266
Author: @ArnoZed
Created: 12/16/2025
Status: ✅ Merged
Merged: 12/16/2025
Merged by: @crazywoola
Base:
main← Head:fix/adapt-glm-4.6v📝 Commits (2)
aa18008bugfix: add support for glm-4.6vc307a47bugfix: add support for glm-4.6v📊 Changes
2 files changed (+2 additions, -1 deletions)
View changed files
📝
models/zhipuai/manifest.yaml(+1 -1)📝
models/zhipuai/models/llm/llm.py(+1 -0)📄 Description
Related Issues or Context
Fix
glm-4.6vmodel failing with errormessages 参数非法(error code 1214) when processing image inputs.The

glm-4.6vmodel was missing from theviso_modelslist inmodels/llm/llm.py, causing multimodal messages (with images) to be incorrectly formatted. When a vision model is not in this list, the code skips image content and constructs messages in text-only format, resulting in an invalid API request to ZhipuAI.This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Added
glm-4.6vto theviso_modelslist to ensure image content is properly formatted using the vision message structure (image_urltype) instead of being skipped.Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.6.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.