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

2408:8226* Posted at: 1 day ago 👁20

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


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

1 Replies

这是由于翻译渠道(DeepSeek)的API响应内容过长,超出了模型的最大输出限制(8192个token)导致的错误。

解决方案:

  1. 升级软件版本:您的软件版本为 v3.92,请先升级到最新版 v3.97。新版本可能已对此类问题进行了优化。
  2. 调整翻译参数

    • 在“翻译渠道”设置中,取消勾选“发送完整字幕”选项。该选项会将整个SRT文件(含时间轴)一次性发送给AI,容易导致响应过长。
    • 改为按行翻译,这能有效减少单次请求的token数量。
  3. 优化提示词(Prompt):如果必须使用“发送完整字幕”功能,请确保您的AI模型足够强大(如GPT-4, DeepSeek-V3),并检查 prompts 目录下的“完整字幕翻译”提示词是否过于冗长,可尝试简化。
  4. 降低并发:在“高级选项”中,将“翻译线程数” (trans_thread) 设置为 1,以降低请求频率和复杂度。

请查阅相关文档:

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