#4318 翻译字幕阶段出错[DeepSeek]内容太长超出最大允许Token,请减小内容或增大max_token,或者降低每次发送字幕行数Could not parse response content as the length limit was

5.34* Posted at: 3 hours ago 👁10

翻译字幕阶段出错[DeepSeek]内容太长超出最大允许Token,请减小内容或增大max_token,或者降低每次发送字幕行数
Could not parse response content as the length limit was reached - CompletionUsage(

1 Replies

DeepSeek 返回“内容太长超出最大允许 Token”,说明当前单次提交给翻译接口的文本长度超过了该模型的上下文限制。

解决方案

  1. 降低 “AI翻译渠道每批字幕行数”

    • 进入菜单 工具/选项 → 高级选项 → 字幕翻译调整,将 AI翻译渠道每批字幕行数 改为 5~10(默认可能较大),减少每次发送的字幕量。
  2. 取消 “发送完整字幕”(如果已勾选)

    • 发送完整字幕会附带时间轴等格式,增加 Token 占用。在翻译渠道下方 取消勾选 该选项,仅发送纯文本行。
  3. 若仍需发送完整字幕,请确保使用的模型支持超长上下文

    • DeepSeek 各版本上下文长度不一,deepseek-chat 可能默认 64K,若行数较多仍可能超限。可尝试使用 deepseek-v3 或其他 128K 模型,并在翻译设置中填写对应模型名。
  4. 可以考虑将字幕文件拆分为多个部分,分批翻译。

调整后如果问题依旧,请提供软件 logs 目录下最新的日志文件(末尾约 30 行),以便进一步分析。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource