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

183.187* Posted at: 14 hours ago 👁22

Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=8192, prompt_tokens=1566, total_tokens=9758, completion_tokens_details=None, prompt_tokens_details=PromptTokensDetails(audio_tokens=None, cached_tokens=1216), prompt_cache_hit_tokens=1216, prompt_cache_miss_tokens=350)


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

1 Replies

您遇到的错误提示“Could not parse response content as the length limit was reached”表明在使用 OpenAI 的 AI 模型(如 ChatGPT)进行翻译或重新断句时,AI 返回的文本内容过长,超出了软件的处理限制。

核心原因与解决方案:

  1. 调整“LLM重新断句每批字词数”:

    • 进入菜单栏的 工具 -> 选项 -> 高级选项
    • 在“通用设置”区域,找到 “LLM重新断句每批字词数”
    • 大幅降低此数值,例如从默认的 2000 改为 500300。这能确保每次发送给 AI 的文本块更小,避免其生成过长的回复。
  2. 调整“每批字幕行数”:

    • 在同一“高级选项”窗口的“字幕翻译调整”区域,找到 “每批字幕行数”
    • 同样降低此数值,例如从 50 改为 2010。这能减少单次翻译请求的文本量。
  3. 检查并修改提示词(Prompt):

    • 如果问题发生在翻译环节,请检查您为 AI 翻译渠道设置的提示词是否过于复杂或冗长。
    • 进入 设置 -> 翻译设置,选择您正在使用的 AI 渠道(如 OpenAI),查看并简化其“提示词”内容,确保其简洁、明确。
  4. 更换翻译渠道或模型:

    • 如果上述调整后问题依旧,可能是当前使用的 AI 模型(如 gpt-4o)在处理长文本时行为不稳定。可以尝试:

      • 在翻译设置中,更换为另一个 AI 模型(如 gpt-3.5-turbo)。
      • 或者暂时切换到非 AI 的翻译渠道(如 Google、微软)来完成当前任务。

操作顺序建议: 优先执行第1步和第2步,这是最直接的解决方法。如果问题仅在翻译时出现,再考虑第3步和第4步。

请查看更多参考文档:

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