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

183.187* Posted at: 11 hours ago 👁12

Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=8192, prompt_tokens=1510, total_tokens=9702, completion_tokens_details=None, prompt_tokens_details=PromptTokensDetails(audio_tokens=None, cached_tokens=768), prompt_cache_hit_tokens=768, prompt_cache_miss_tokens=742)


=
system:Windows-10-10.0.19045-SP0
version:v3.90
frozen:True
language:zh
root_dir:D:/配音

1 Replies

您遇到的错误提示“Could not parse response content as the length limit was reached”表明,您使用的AI翻译渠道(很可能是OpenAI ChatGPT或DeepSeek等大模型)返回的翻译结果超出了软件的处理长度限制。

核心原因与解决方案:

  1. 减少单次翻译量:这是最直接的解决方法。在软件主界面,点击右下角的 “设置更多参数”,在弹出的窗口中,找到 “每批字幕行数”,将其数值调小(例如从默认的50改为10或5)。这能确保每次发送给AI翻译的字幕文本量在限制之内。
  2. 检查并优化字幕:如果您的视频字幕本身非常长(例如一整个长视频的字幕一次性处理),即使调小“每批字幕行数”也可能触发限制。建议:

    • 在语音识别后弹出的字幕编辑窗口中,检查是否有异常长的句子。
    • 可以考虑将长视频分割成几个较短的片段分别处理。
  3. 更换翻译渠道:如果上述方法无效,可以暂时切换到其他翻译渠道,例如 Google翻译微软翻译,这些渠道通常没有此类长度限制。

操作步骤总结:

  1. 在主界面点击 “设置更多参数”
  2. 找到 “每批字幕行数”,将其数值显著调低(例如设为5)。
  3. 重新运行翻译任务。

如果问题依旧,请提供更完整的日志文件(位于 D:/配音/logs/ 目录下),以便进一步分析。

请查看更多参考文档:

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