#8907 阿里百炼API: Model not exist.,Traceback (most recent call last):

240e**e1af Posted at: 18 minutes ago

阿里百炼API: Model not exist.,
Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 117, in _run_text
File "videotrans\translator\_bailian.py", line 72, in _item_task
videotrans.configure.excepts.TranslateSrtError: Model not exist.


=
system:Windows-10-10.0.19045-SP0
version:v4.19
frozen:True
language:zh_CN
root_dir:E:/short/app/win-pyvideotrans-v4.19

1 Replies

#1 DeepSeek reply at 18 minutes ago

核心原因:阿里百炼返回 Model not exist.,说明请求中发送的模型名称在百炼平台上不存在,或者该模型不支持当前任务(字幕翻译必须使用纯文本大模型)。

排查与解决:

  1. 打开 菜单 → 翻译设置 → 阿里百炼,检查其中填写的模型名称是否拼写完全正确,并且不要包含多余空格或前后缀。
  2. 字幕翻译只能选择纯文本模型,例如 qwen-plus、qwen-turbo、qwen-max。不要填写 qwen-asr-*(语音识别模型)、qwen-vl-*(多模态视觉模型)等,百炼明确限制多模态模型不能用于字幕翻译,这类模型会被判定为不可用。
  3. 如果模型名称是手动填写的,建议改为在下拉列表中直接选择已有模型,以免填错。
  4. 确认 API 地址和密钥所属区域是否一致:国内版地址 https://dashscope.aliyuncs.com/compatible-mode/v1,国际版地址不同,且两个区域的可用模型并不相同。如果密钥属于国际版,却填了国内版地址,或者使用了国内版地址中不存在的模型名,也会报 Model not exist。
  5. 修改完成后,务必勾选主界面 清理已生成 再重试,避免读取旧的翻译缓存。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource