长对话卡住,无法进行下一轮对话:本轮运行失败,触发api 413报错。 #2770
Answered
by
zoahdev
China-natian
asked this question in
Q&A
|
我在进行使用是调用了千问的api,当会话到一定长度后触发报错: |
Answered by
zoahdev
Aug 17, 2026
Replies: 1 comment
|
这是 provider 侧的上下文超限(413),不是 DSH 崩溃:会话长了之后,DSH 会把整个会话历史发给 API,撞上千问(Qwen)的实际上下文上限。 处理建议(按可靠性排序,rc.6 实测口径):
跟踪帖:#2107(compaction 在 web 会话不触发 + meter 低估),等 rc.7 修复;社区侧 dsh-plugin-doctor 的 如果新开对话也报错,那就不是长度问题,把新会话的完整报错贴出来。 |
0 replies
Answer selected by
China-natian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


这是 provider 侧的上下文超限(413),不是 DSH 崩溃:会话长了之后,DSH 会把整个会话历史发给 API,撞上千问(Qwen)的实际上下文上限。
处理建议(按可靠性排序,rc.6 实测口径):
thresholdRatio在 rc.6 web 上大概率没效果;contextWindow是否准确——DSH 对未知模型默认按 1,000,000 tokens 算,如果千问实际上限更小,需要按真实值配置;maxTokens/ reasoning 输出),给 messages 留出空间。跟踪帖:#2107(compaction 在 web 会话不触发 + meter 低估),等 rc.7 修复;社区侧 dsh-plugin-doctor 的
--profile检查可以帮你确认宿主遮蔽/配置层问题。如果新开对话也报错,那就不是长…