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

183.187* Posted at: 16 hours ago 👁11

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


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

1 Replies

这个错误提示表明您在使用 OpenAI 的翻译功能时,返回的翻译结果超出了模型的最大输出长度限制(8192 tokens)。这通常发生在视频字幕内容过长,一次性发送给 AI 模型翻译时。

请按以下步骤解决:

  1. 减少单次翻译行数

    • 在软件主界面,点击右下角的 “设置更多参数”
    • 找到 “每批字幕行数” 选项,将其数值调小。建议先从 105 开始尝试。
    • 这会将长字幕分批发送给 AI 翻译,避免单次请求过长。
  2. (可选)开启完整上下文

    • “设置更多参数” 中,确保 “发送完整字幕” 选项是勾选状态。
    • 这能让 AI 在翻译每批字幕时,都能看到上下文,提高翻译的连贯性。
  3. 调整翻译模型

    • 如果使用的是 gpt-3.5-turbo 这类上下文窗口较小的模型,可以尝试切换到 gpt-4o-minigpt-4o,它们通常有更大的上下文容量。
  4. 检查并清理字幕

    • 在语音识别后弹出的字幕编辑窗口中,检查是否有异常长的句子或大量无意义的重复内容。手动将其拆分或删除,可以减少总 token 数。

执行以上操作后,重新开始翻译任务即可。

请查看更多参考文档:

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