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

120.199* Posted at: 8 hours ago

Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=1419, prompt_tokens=2677, total_tokens=4096, 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 等)返回的响应内容长度超过了该渠道设置的最大 token 限制,导致软件无法完整解析响应结果。

可能的解决办法:

  1. 增大 AI 翻译渠道的 max_tokens:在对应 AI 渠道的设置界面(例如 OpenAI 或 DeepSeek 设置)中,将 max tokens 适当调大(如 4096、8192 或更高),确保返回内容不会被截断。
  2. 减少每批发送的字幕行数:在“高级选项”中降低“AI翻译渠道每批字幕行数”(比如改为 5~10 行),避免单次请求内容过多。
  3. 取消“发送完整字幕”选项:如果开启了“发送完整字幕”,尝试关闭它,改用逐行翻译,减少单次请求的数据量。
  4. 检查使用的模型是否支持长文本:某些轻量模型(如 gpt-3.5-turbo 或本地小模型)本身有较短的上下文限制,可考虑换用旗舰模型(如 gpt-4odeepseek-chat)。

如果以上方法仍无法解决,请提供软件安装目录下 logs/ 文件夹中的最新日志文件(复制底部约 30 行报错内容)以便进一步分析。另外,当前使用的版本是 v3.92,而最新正式版为 v4.01,建议升级到最新版后再试,因为部分低版本可能存在已修复的相关 bug。

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist