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

221.127* Posted at: 2 hours ago 👁4

请求的资源不存在,请检查模型名称或API地址 Error code: 404 - {'error': {'message': 'The model gpt-4 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 19, in run
File "videotrans\translator\__init__.py", line 915, in run
File "videotrans\translator\_base.py", line 81, in run
File "videotrans\translator\_base.py", line 99, 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 151, 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.NotFoundError: Error code: 404 - {'error': {'message': 'The model gpt-4 does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}


=
system:Windows-10-10.0.19045-SP0
version:v3.84
frozen:True
language:zh
root_dir:F:/

1 Replies

该错误表明您配置的 OpenAI API 无法访问 gpt-4 模型。这通常有两个原因:

  1. 您的 OpenAI API 账户没有 gpt-4 模型的访问权限。 您需要登录 OpenAI 平台,检查您的账户是否已获得 GPT-4 API 的使用资格。新注册的账户通常默认只有 GPT-3.5 的访问权限。
  2. 您配置的模型名称不正确。 请按以下步骤检查和修改:

    • 在 pyVideoTrans 顶部菜单栏,点击 翻译设置
    • 找到并点击 OpenAI ChatGPT
    • 模型名称 一栏中,确认您填写的是否是有效的模型名。如果您没有 GPT-4 权限,请将其修改为 gpt-3.5-turbo。如果您确定有 GPT-4 权限,请确保模型名拼写正确(例如 gpt-4gpt-4-turbo-preview)。

修改并保存设置后,请重试翻译任务。

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

Similar issues already exist

Trending Questions