mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Bug: The Tongyi plugin incorrectly reports/enforces DeepSeek-R1 context window as 64K, while the official spec is 131,072 #929
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?
Originally created by @hsiong on GitHub (Jan 11, 2026).
Self Checks
Dify version
1.11.2
Plugin version
langgenius/tongyi 0.1.18
Cloud or Self Hosted
Cloud
Steps to reproduce
✔️ Error log
No explicit runtime error.
This is a configuration / capability mismatch issue.
Bug: The Tongyi plugin incorrectly reports/enforces DeepSeek-R1 context window as 64K, while the official spec is 131,072. This blocks long-context chats and truncates inputs earlier than expected.
The model details shown in the Tongyi/Dify UI on the Aliyun Bailian console also list DeepSeek-R1
@dosubot[bot] commented on GitHub (Jan 11, 2026):
The context window for DeepSeek-R1 in the Tongyi plugin is currently set to 64,000 tokens in the model configuration file, which is incorrect. The official spec is 131,072 tokens. This value is defined in models/tongyi/models/llm/deepseek-r1.yaml under context_size. The UI and plugin enforcement both reflect this YAML value, so inputs are truncated at 64K tokens instead of the correct limit. To fix this, update context_size to 131072 in that YAML file and restart the plugin—this will allow long-context chats up to the official model limit. No other code or config outside the plugin controls this behavior, so this change is sufficient to resolve the issue.
See the relevant config here.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other