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

211.20* Posted at: 3 hours ago 👁10

内容太长超出最大允许Token,请减小内容或增大max_token,或者降低每次发送字幕行数
Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=4096, prompt_tokens=3666, total_tokens=7762, completion_tokens_details=None, prompt_tokens_details=None)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/A

1 Replies

这是由于AI翻译渠道单次发送的字幕行数过多,导致AI模型的响应内容超过了其Token限制而无法完整返回。

解决方案:

  1. 在软件主界面,点击“菜单” -> “工具” -> “高级选项”。
  2. 在“字幕翻译调整”区域,找到“AI翻译渠道每批字幕行数”设置项。
  3. 将该数值减小(例如从默认的100改为30或20),以降低每次请求的Token消耗。
  4. 同时,可以尝试取消勾选“发送完整字幕”和“AI翻译附带完整原字幕”选项,这能显著减少发送给AI的文本量。
  5. 保存设置后,重新执行翻译任务。

请查阅相关文档:

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