#6194 Model not exist.:Traceback (most recent call last):

2409:895e* Posted at: 18 hours ago

Model not exist.:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 18, in run
File "videotrans\recognition\__init__.py", line 206, in run
File "videotrans\recognition\_base.py", line 92, in run
File "videotrans\recognition\_openairecognapi.py", line 37, in _exec
File "videotrans\recognition\_openairecognapi.py", line 97, in _thrid_api
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\audio\transcriptions.py", line 485, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.BadRequestError: Error code: 400 - {'code': 'InvalidParameter', 'message': 'Model not exist.', 'request_id': '2aca2aa7-7798-938a-baf9-18ef1bb4712d'}


=
system:Windows-10-10.0.22631-SP0
version:v4.07
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

这是 OpenAI 兼容语音识别 API 返回的 400 错误,核心原因是你所选用的语音识别模型在当前 API 服务中不存在,或当前账户没有使用该模型的权限

解决步骤:

  1. 打开 菜单 -> 翻译设置 -> OpenAI 语音识别,检查"模型"字段,改为服务端明确支持的模型,例如 whisper-1gpt-4o-transcribegpt-4o-mini-transcribe
  2. 如果你使用的是第三方中转/代理或本地兼容 API(而非 OpenAI 官方),请确认该服务实际支持的模型名,并在软件中填写与之一致的名称;有些平台自定义了模型名,不能用 OpenAI 官方默认名。
  3. 确认 API 地址、API Key 无误,且该账户已开通对应模型的访问权限,部分模型需要单独授权或充值。
  4. 修改后重新执行任务,若仍报 Model not exist.,请将 logs/ 目录下最新日志中该任务的完整报错内容发来,以便进一步定位。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource