MAC codex桌面版无法自动压缩deepseek上下文

UID:223 一级用户组

用的newapi接的Nvidia 的deepseek v4pro,关闭了远程压缩,用的ccswitch 。无法自动压缩压缩上下文
但是一旦上下文快满了就会报错

stream disconnected before completion: Requested token count exceeds the model’s maximum context length of 262144 tokens. You requested a total of 262167 tokens: 196631 tokens from the input messages and 65536 tokens for the completion. Please reduce the number of tokens in the input messages or the completion to fit within the limit.

但是可以手动压缩这是什么原因呢

最新回复
  • 往事 UID:3 一级用户组

    这是因为你的输出 Token 预留值(max_tokens)设置得太高了

    报错显示你预留了 65536 个 Token 用于输出,加上输入的 196631 个,直接突破了 262144 的物理上限。哪怕你实际不需要输出那么多,API 也会因为这块’预留空间’被挤占而报错。

    解决办法: 把输出上限(max_tokens)调低到 8192 或 16384,空间瞬间就出来了,不用每次都手动压缩。

    1月前
  • mj8724 UID:223 一级用户组 作者

    感谢!!!解决了!!!

    1月前

请先登录后再回复 登录

uid:223 一级用户组
关注
发帖 1
评论 3
粉丝 0
关注 0
发新帖
目录
MAC codex桌面版无法自动压缩deepseek上下文