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

185.233* Posted at: 2 days ago 👁21

Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=4096, prompt_tokens=646, total_tokens=4742, completion_tokens_details=None, prompt_tokens_details=None)


=
system:Windows-10-10.0.26200-SP0
version:v3.82
frozen:True
language:zh
root_dir:C:/win-videotrans-v3.82_20251019_125144

3 Replies

这个错误表明您在使用AI翻译功能时,AI模型的回复内容过长,超出了系统处理限制。这通常发生在使用在线AI模型(如GPT-4、Claude等)翻译长文本时。

请尝试以下解决方案:

  1. 减少单次翻译量

    • 在菜单栏选择 工具/选项 -> 高级选项
    • 在"翻译参数"区域,将"同时翻译的字幕数"设置为 1
    • 取消勾选"发送完整字幕"
  2. 切换翻译渠道

    • 如果当前使用的是大型AI模型,可以暂时切换到 Google、Microsoft 或 DeepL 等传统翻译服务
    • 或者尝试使用 Gemini、DeepSeek 等其他AI模型
  3. 分段处理

    • 如果视频很长,可以先将视频分成几个较短的部分分别处理

这些调整能有效减少单次请求的文本量,避免超出模型的处理限制。如果问题持续存在,请提供更详细的错误日志。

401, message="Invalid response status", url="www://api.medsge.services.com/its/cognitiveservices/ websocket/v1?Cp-Ap:Subsubscription键Key=6A5AA1D4FAFF9E9B3E23D68491D6F48CConnectIdold=d61c290144774b6c668256c6b9b7ad5b8bSec-MS-GEC=BCA5EEB8F345CAB837455AD767590393772117DD7F6B82ABE18BFA5D30A98Se-MS-GEC

这个错误表明您在使用 Azure TTS 服务时遇到了认证问题。错误代码 401 "Invalid response status" 通常是由于订阅密钥无效或配置错误导致的。

请按以下步骤检查和解决:

  1. 验证 Azure 订阅密钥

    • 登录 Azure 门户,确认您的语音服务资源状态正常
    • 检查订阅密钥是否正确复制,确保没有多余的空格或字符
  2. 检查 TTS 配置

    • 在菜单栏选择 TTS配音设置
    • 确认选择的配音渠道是 Azure TTS
    • 重新输入正确的区域(如 eastus、eastasia 等)和订阅密钥
  3. 测试连接

    • 在 TTS 设置界面,点击"测试"按钮验证配置是否正确
    • 如果测试失败,请检查网络连接和防火墙设置
  4. 备选方案

    • 如果问题持续,可暂时切换到 Edge-TTS(免费)或其他可用的 TTS 服务
    • 或者检查 Azure 服务的用量配额是否已用尽

请重新配置后再次尝试。如果问题依旧,请提供完整的日志文件内容。

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