mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Qwen2.5-32B Token limit #228
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 @chiehw on GitHub (Apr 24, 2025).
Self Checks
Dify version
1.2.0
Plugin version
langgenius/openai_api_compatible 0.0.12
Cloud or Self Hosted
Cloud
Steps to reproduce
I used the openai compatible mode to connect to Qwen2.5-32B, and found that the token limit would be reached after only a few thousand words.

Currently, OpenAI compatible mode still uses GPT2 to calculate tokens, Currently, the OpenAI compatible mode still uses gpt2 to calculate tokens, but most of them are similar to gpt4o token calculations.
✔️ Error log
Query or prefix prompt is too long,you can
reduce the prefix prompt,or shrink the
max token,or switch to a llm with a larger
token limit size.
@chiehw commented on GitHub (Apr 24, 2025):
The default token calculation method is currently gpt2, how about changing it to gpt4o? I can contribute this PR
@dosubot[bot] commented on GitHub (Aug 15, 2025):
Hi, @chiehw. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!