Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The model: gpt-4 does not exist #52

Open
ManPython opened this issue May 12, 2023 · 10 comments
Open

The model: gpt-4 does not exist #52

ManPython opened this issue May 12, 2023 · 10 comments

Comments

@ManPython
Copy link

ManPython commented May 12, 2023

Python: Traceback (most recent call last):
  File "C:\Users\Laptop\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\__init__.py", line 174, in execute
    blender_code = generate_blender_code(context.scene.gpt4_chat_input, context.scene.gpt4_chat_history, context, system_prompt)
  File "C:\Users\Laptop\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\utilities.py", line 51, in generate_blender_code
    response = openai.ChatCompletion.create(
  File "C:\Users\Laptop\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\lib\openai\api_resources\chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
  File "C:\Users\Laptop\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\lib\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
  File "C:\Users\Laptop\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 226, in request
    resp, got_stream = self._interpret_response(result, stream)
  File "C:\Users\Laptop\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 619, in _interpret_response
    self._interpret_response_line(
  File "C:\Users\Laptop\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 682, in _interpret_response_line
    raise self.handle_error_response(
openai.error.InvalidRequestError: The model: `gpt-4` does not exist

**System Information**
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 497.17

**Blender Version**
Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: `rBa95bf1ac01be`
Worked: (newest version of Blender that worked as expected)
@Lazaaa
Copy link

Lazaaa commented Jun 3, 2023

Any solution?

@luckrols
Copy link

luckrols commented Jun 5, 2023

I have exactly the same issue:

INFO:openai:error_code=model_not_found error_message='The model: gpt-4does not exist' error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False Traceback (most recent call last): File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\__init__.py", line 174, in execute blender_code = generate_blender_code(context.scene.gpt4_chat_input, context.scene.gpt4_chat_history, context, system_prompt) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\utilities.py", line 51, in generate_blender_code response = openai.ChatCompletion.create( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_resources\chat_completion.py", line 25, in create return super().create(*args, **kwargs) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_resources\abstract\engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 619, in _interpret_response self._interpret_response_line( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 682, in _interpret_response_line raise self.handle_error_response( openai.error.InvalidRequestError: The model:gpt-4does not exist Error: Python: Traceback (most recent call last): File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\__init__.py", line 174, in execute blender_code = generate_blender_code(context.scene.gpt4_chat_input, context.scene.gpt4_chat_history, context, system_prompt) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\utilities.py", line 51, in generate_blender_code response = openai.ChatCompletion.create( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_resources\chat_completion.py", line 25, in create return super().create(*args, **kwargs) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_resources\abstract\engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 619, in _interpret_response self._interpret_response_line( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 682, in _interpret_response_line raise self.handle_error_response( openai.error.InvalidRequestError: The model:gpt-4 does not exist
system-info.txt

How to solve this please?

Kind regards,

Luc

@luckrols
Copy link

luckrols commented Jun 5, 2023

I have exactly the same issue:

INFO:openai:error_code=model_not_found error_message='The model: gpt-4does not exist' error_param=None error_type=invalid_request_error message='OpenAI API error received' stream_error=False Traceback (most recent call last): File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\__init__.py", line 174, in execute blender_code = generate_blender_code(context.scene.gpt4_chat_input, context.scene.gpt4_chat_history, context, system_prompt) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\utilities.py", line 51, in generate_blender_code response = openai.ChatCompletion.create( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_resources\chat_completion.py", line 25, in create return super().create(*args, **kwargs) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_resources\abstract\engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 619, in _interpret_response self._interpret_response_line( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 682, in _interpret_response_line raise self.handle_error_response( openai.error.InvalidRequestError: The model:gpt-4does not exist Error: Python: Traceback (most recent call last): File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\__init__.py", line 174, in execute blender_code = generate_blender_code(context.scene.gpt4_chat_input, context.scene.gpt4_chat_history, context, system_prompt) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\utilities.py", line 51, in generate_blender_code response = openai.ChatCompletion.create( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_resources\chat_completion.py", line 25, in create return super().create(*args, **kwargs) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_resources\abstract\engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 619, in _interpret_response self._interpret_response_line( File "C:\Users\luc\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\BlenderGPT-main\lib\openai\api_requestor.py", line 682, in _interpret_response_line raise self.handle_error_response( openai.error.InvalidRequestError: The model:gpt-4 does not exist system-info.txt

How to solve this please?

Kind regards,

Luc

OK, I could solve this by 1) enabling a payment method for ChatGPT via this link: https://platform.openai.com/account/billing/overview
Then, in BlenderGPT, select the 3.5 version. Then it works fine!
In order to have access to chatGPT 4, I think you need to put yourself on the waiting list. So for me, this question can be closed.

@Lazaaa
Copy link

Lazaaa commented Jun 6, 2023

ChatGPT 3.5 free, i use same another program with the different API keys. I don't understand why it doesn't work in BlenderGPT.

@dwallener
Copy link

For an API key, you need a Plus subscription. And it's only available for 3.5 - to get an API key for 4, you have to get on the OpenAI waitlist, and then get approved.

@musabbiralsiam
Copy link

Just tell us a solution. I need it for free. Please do something.

@luckrols
Copy link

luckrols commented Jun 19, 2023 via email

@SHoar
Copy link

SHoar commented Jul 30, 2023

OK, so what about when you are already using a paid GPT4 Open AI Plus created API Key? I am new to Blender/BlenderGPT, but not new to creating API Keys and following directions.

@Nippytime
Copy link

API Key and plus are completely unrelated. google open AI api key for more info.

@kid-gorgeous
Copy link

If your API key is accurate, and you have a valid payment method then you must be approved to use OpenAI's GPT 4. I hope this helps solve your problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants