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

2408:8226* Posted at: 14 hours ago 👁12

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


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

1 Replies

这是由于在视频翻译过程中,翻译渠道(如DeepSeek、ChatGPT等AI模型)返回的翻译结果过长,超出了软件的处理限制(8192个token)导致的。

解决方案:

  1. 降低翻译并发:在软件菜单栏中,进入“工具” -> “高级选项” -> “通用设置”。将“最大进程数”设置为 24,然后保存并重启软件。这可以减少同时处理的翻译请求量。
  2. 调整翻译方式:在视频翻译任务设置的“翻译”步骤中,取消勾选“发送完整字幕”选项。这将改为逐行翻译,避免一次性发送过长的上下文。
  3. 优化字幕:如果源视频的语音识别结果(原始字幕)本身就非常长,可以考虑在翻译前,先使用软件的“字幕编辑”功能,对过长的句子进行手动拆分或简化。
  4. 更换翻译模型:如果使用的是本地小模型(如7B参数模型),其处理长文本能力较弱,建议切换到更强大的在线模型,如DeepSeek-V3或GPT-4o。
  5. 更新软件:您当前使用的是 v3.92 版本,建议更新到最新版本(如 v3.95),可能已包含对此类问题的优化。

请查阅相关文档:

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.

Related resource

Similar issues already exist