#2631 Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=4096, prompt_tokens

120.199* Posted at: 7 hours ago 👁13

Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=4096, prompt_tokens=2699, total_tokens=6795, completion_tokens_details=None, prompt_tokens_details=None)


=
system:Windows-10-10.0.26200-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/shipingongju/vido

1 Replies

这个错误提示表明您使用的AI翻译渠道(很可能是OpenAI、DeepSeek等大模型)返回的翻译结果长度超过了模型的最大输出限制(completion_tokens=4096),导致翻译失败。

核心原因是:您一次性发送给AI翻译的字幕文本过长。

请按以下步骤解决:

  1. 减少单次翻译量(最有效的方法):

    • 在软件主界面,点击右下角的 “设置更多参数”
    • 找到 “每批字幕行数”“同时翻译字幕数”
    • 将数值调小,例如从默认的 50 改为 2010 甚至 5。数值越小,单次发送的文本越短,越不容易触发长度限制。
  2. (可选)开启“发送完整字幕”以提供上下文(如果已关闭):

    • “设置更多参数” 中,确保 “发送完整字幕” 选项是勾选状态。这有助于AI理解上下文,有时能生成更连贯的翻译,但可能会增加token消耗。如果开启后问题更严重,请关闭此选项并优先执行第1步。
  3. 检查并调整高级设置(如果问题持续):

    • 进入菜单栏:工具 -> 高级选项
    • “字幕翻译调整” 区域,确认 “每批字幕行数” 已经设置得足够小(例如 5)。
    • 同时可以适当增加 “翻译后暂停秒”(例如设为 3),以降低API请求频率。

总结操作顺序:

  1. 在主界面“设置更多参数”中,大幅调低 “每批字幕行数”
  2. 重新运行翻译任务。

如果调整后问题依旧,请尝试更换其他翻译渠道(如Google翻译、微软翻译)进行测试,以排除是否是特定AI模型的问题。

请查看更多参考文档:

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions