#2633 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=1857, total_tokens=5953, 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

您遇到的错误提示“Could not parse response content as the length limit was reached”表明,在使用AI模型(如OpenAI、DeepSeek等)进行翻译或重新断句时,模型的回复内容过长,超出了软件预设的解析长度限制。

核心原因与解决方案:

  1. 根本原因:您处理的视频字幕内容过多,导致AI模型生成的回复(翻译结果或重新断句后的文本)过长。
  2. 解决方案减少单次发送给AI模型处理的字幕行数,以控制其回复长度。

请按以下步骤操作:

  1. 在软件主界面,点击右下角的 “设置更多参数”
  2. 在弹出的“高级选项”窗口中,找到 “字幕翻译调整” 区域。
  3. “同时翻译字幕数” 的值调小。例如,如果当前是 10,请尝试改为 53
  4. 如果问题出现在 “LLM重新断句” 环节,请在“高级选项”的 “通用设置” 区域,将 “LLM重新断句每批字词数” 的值也相应调小(例如从默认的 1000 改为 500)。
  5. 点击“确定”保存设置,然后重新处理视频。

补充建议:

  • 如果视频非常长,字幕量巨大,可以尝试将视频分割成多个较短的部分分别处理。
  • 确保您使用的AI模型API Key有足够的额度,并且模型本身支持较长的上下文(例如GPT-4、Claude-3等)。

请查看更多参考文档:

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