mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1525] [MERGED] Filter box tokens from glm-4.5v model output #1935
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/1525
Author: @QIN2DIM
Created: 8/18/2025
Status: ✅ Merged
Merged: 8/18/2025
Merged by: @crazywoola
Base:
main← Head:handle-glm-4.5v-box-tokens📝 Commits (2)
7495920Filter box tokens from glm-4.5v model outputdc2c90bUpdate manifest.yaml📊 Changes
2 files changed (+11 additions, -1 deletions)
View changed files
📝
models/zhipuai/manifest.yaml(+1 -1)📝
models/zhipuai/models/llm/llm.py(+10 -0)📄 Description
Introduces TOKEN_BEGIN_OF_BOX and TOKEN_END_OF_BOX constants and updates the ZhipuAILargeLanguageModel to skip these tokens in the output stream for the glm-4.5v model, ensuring cleaner responses.
Related Issues or Context
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
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.5.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.