mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1160] [MERGED] fix: resolve Tongyi LLM character loss issue when incremental_output=… #1745
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/1160
Author: @Nzzz964
Created: 6/25/2025
Status: ✅ Merged
Merged: 6/26/2025
Merged by: @crazywoola
Base:
main← Head:main📝 Commits (1)
a795461fix: resolve Tongyi LLM character loss issue when incremental_output=True (#957)📊 Changes
2 files changed (+19 additions, -8 deletions)
View changed files
📝
models/tongyi/manifest.yaml(+1 -1)📝
models/tongyi/models/llm/llm.py(+18 -7)📄 Description
…True (#957)
Related Issues or Context
The code above attempts to simulate incremental output behavior for Dify when incremental_output=False. However, if the parameter is set to True, it may lead to undefined behavior.
As shown in the image above, the response content is initially a single backtick (`). When the next response arrives, it replaces the first occurrence of the backtick.
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking)
My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node)
My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.)
My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
My Changes Affect Structured Output Format (JSON, XML, etc.)
My Changes Affect Token Consumption Metrics
My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.)
Other Changes (Add New Models, Fix Model Parameters etc.)
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Local Deployment Environment