#1039 openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `gpt-4-turbo` does not exist or you do not have

203.10* Posted at: 21 hours ago 👁12

请求API地址不存在或模型名称错误: Error code: 404 - {'error': {'message': 'The model gpt-4-turbo does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 17, in run
File "videotrans\translator\__init__.py", line 844, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 97, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_chatgpt.py", line 169, in _item_task
File "openai\_utils\_utils.py", line 287, in wrapper
File "openai\resources\chat\completions\completions.py", line 1150, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model gpt-4-turbo does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

=====
Windows-10-10.0.26100-SP0
version:v3.80
frozen:True
language:zh

1 Replies

错误信息显示您选择的 OpenAI 模型 gpt-4-turbo 不存在或您没有访问权限。这通常是由于以下原因:

  1. 模型名称错误:OpenAI 的模型名称已更新,gpt-4-turbo 可能不是当前有效的名称。
  2. API 密钥权限不足:您的 API 密钥可能没有访问该模型的权限,或者该模型已下线。

解决方案:

  1. 检查并更新模型名称

    • 在软件主界面,点击菜单栏的 翻译设置
    • 在“翻译渠道”中选择 OpenAI
    • 在“模型名称”字段中,尝试使用以下当前常见的有效模型名称之一:

      • gpt-4o (推荐,最新且性价比高)
      • gpt-4-turbo (如果您的账户有权限)
      • gpt-4
      • gpt-3.5-turbo
    • 保存设置后重试。
  2. 验证 API 密钥和权限

    • 登录您的 OpenAI 平台账户,检查 API 密钥是否有效,并确认您的套餐是否支持所选的模型。
    • 确保您的 API 密钥在软件的“翻译设置”中已正确填写。
  3. 临时解决方案

    • 如果问题持续,可以暂时切换到其他翻译渠道,如 GoogleMicrosoftGemini

请先尝试更新模型名称,如果问题依旧,请提供更多关于您 OpenAI 账户套餐的信息。

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