#7185 当前密钥没有访问权限,请检查权限设置 This token has no access to model Openai-Gpt-1 (request id: 20260911144011580074909oY3ZIIkr):Tracebac

46.250**9 Posted at: 1 hour ago

当前密钥没有访问权限,请检查权限设置 This token has no access to model Openai-Gpt-1 (request id: 20260911144011580074909oY3ZIIkr):
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 17, in run
File "videotrans\recognition\__init__.py", line 250, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_openairecognapi.py", line 37, in _exec
File "videotrans\recognition\_openairecognapi.py", line 91, in _thrid_api
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 483, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.PermissionDeniedError: Error code: 403 - {'error': {'message': 'This token has no access to model Openai-Gpt-1 (request id: 20260911144011580074909oY3ZIIkr)', 'type': 'new_api_error'}}


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/FanYi/win-pyvideotrans-v3.99

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:你使用的 API 密钥(token)没有权限访问你在软件中填写的语音识别模型 Openai-Gpt-1(OpenAI 语音识别渠道)。

从报错信息看,这是第三方中转/代理 API(new_api_error)返回的 403 权限拒绝,而非软件本身的问题。你填写的模型名称 Openai-Gpt-1 在该 API 服务商处不存在、未授权、或不是语音识别模型。

解决方案(按顺序排查):

  1. 检查填写的模型名称是否正确。OpenAI 语音识别(STT)渠道应填写语音识别模型,例如 whisper-1gpt-4o-transcribe 等,而不是 Openai-Gpt-1 这类名称。
  2. 确认你使用的中转/代理 API 服务商是否提供并授权了该模型,如未开通请在其平台开通对应模型权限或更换密钥。
  3. 如果使用的是第三方中转渠道,请改用该服务商文档中明确支持的识别模型名称,或直接在软件中改用其他识别渠道(如内置 faster-whisper)。
  4. 注意:stt 语音识别用途应选择语音识别模型,翻译模型不能用于此渠道,反之亦然,模型与任务类型必须匹配。

如按上述操作后仍报错,请提供你在「菜单-翻译设置」中 OpenAI 相关的填写内容(可隐藏密钥)以进一步分析。

请查阅相关文档:

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