点击查看 Edge-TTS 配音渠道无法使用的解决办法!!!

#1958 openai.BadRequestError: Error code: 400 - {'code': 20012, 'message': 'Model does not exist. Please check it carefully.',

119.122* Posted at: 11 hours ago 👁15

请求参数不正确:Error code: 400 - {'code': 20012, 'message': 'Model does not exist. Please check it carefully.', 'data': None}:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 926, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 96, in _run_text
File "videotrans\translator\_siliconflow.py", line 54, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1156, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.BadRequestError: Error code: 400 - {'code': 20012, 'message': 'Model does not exist. Please check it carefully.', 'data': None}


=
system:Windows-10-10.0.26200-SP0
version:v3.89
frozen:True
language:zh
root_dir:B:/win-videotrans

1 Replies

错误信息显示您在使用硅基流动(SiliconFlow)作为翻译渠道时,指定的模型不存在(Model does not exist)。

核心原因: 您在软件中配置的硅基流动模型名称不正确,或者该模型在硅基流动平台上已不可用。

解决方案:

  1. 检查并更新模型名称:

    • 打开 pyVideoTrans,进入菜单栏的 工具/选项 -> 翻译设置
    • 在“翻译渠道”中选择“硅基流动”。
    • 查看“模型”输入框中的内容。常见的、可用的模型名称是 Qwen/Qwen2.5-7B-InstructQwen/Qwen2.5-14B-Instruct。请确保您填写的是硅基流动平台上当前支持的、完整的模型ID。
    • 重要: 模型名称必须与硅基流动平台上的 “模型ID” 完全一致,区分大小写。
  2. 验证模型可用性:

    • 访问硅基流动官方网站的模型库,确认您填写的模型ID是否存在且状态为“可用”。
  3. 临时替代方案:

    • 如果无法确定正确的模型名称,可以暂时切换到其他翻译渠道,例如 DeepSeekGoogleMicrosoft,以完成当前任务。

请按照上述步骤检查并修正模型名称后重试。

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

Trending Questions