mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 10:05:23 -04:00
[PR #2567] [MERGED] fix(deepseek): enhance message cleaning logic to preserve tool and system #2573
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/2567
Author: @Nov1c444
Created: 2/10/2026
Status: ✅ Merged
Merged: 2/10/2026
Merged by: @crazywoola
Base:
main← Head:fix/deepseek-tool-message-ignore📝 Commits (2)
57cc288fix(deepseek): enhance message cleaning logic to preserve tool and system messagesc903e31chore: bump version to 0.0.11📊 Changes
2 files changed (+10 additions, -7 deletions)
View changed files
📝
models/deepseek/manifest.yaml(+1 -1)📝
models/deepseek/models/llm/llm.py(+9 -6)📄 Description
…
Related Issues or Context
Fixes #2566
Fix _clean_messages dropping ToolPromptMessage with empty content by reordering the guard clause before the empty-content filter. This prevents the cascading issue where missing tool responses cause unrelated assistant messages to be incorrectly merged.
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.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.