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

2408:8226* Posted at: 15 hours ago 👁11

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


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

1 Replies

这是由于翻译渠道(DeepSeek)的AI模型回复内容过长,超出了软件的处理限制(8192个token)导致的。

解决方案:

  1. 降低并发数:在软件菜单栏中,点击“工具” -> “高级选项” -> “通用设置”,将“翻译线程数”设置为 1,然后保存并重启软件。
  2. 调整翻译模式:在“翻译设置”中,取消勾选“发送完整字幕”选项,改为按行翻译,这可以显著减少每次发送给AI模型的文本量。
  3. 优化提示词:检查 prompts 目录下的翻译提示词文件,确保其简洁,避免要求AI模型输出过多额外信息。
  4. 考虑更换模型:如果问题持续,可以尝试使用其他翻译渠道,如 OpenAI (GPT-4o) 或 Gemini,这些模型可能对长上下文有更好的处理能力。

请查阅相关文档:

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