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

I am not a Dev I'm not sure what's happening so I"ll paste the code here. Thank you! #14

Open
0xgogo opened this issue Mar 25, 2023 · 2 comments

Comments

@0xgogo
Copy link

0xgogo commented Mar 25, 2023

Read prefs: C:\Users\Lucas\AppData\Roaming\Blender Foundation\Blender\3.4\config\userpref.blend
reloading addon: BlenderGPT-main 1679702816.4737766 1679703196.22019 'C:\Users\Lucas\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\init.py'
Modules Installed () from 'D:\BlenderGPT-main.zip' into 'C:\Users\Lucas\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons'
Warning: 1 x Draw window and swap: 6.9263 ms, average: 6.92630000 ms
Traceback (most recent call last):
File "C:\Users\Lucas\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main_init_.py", line 91, in generate_blender_code
response = openai.ChatCompletion.create(
File "C:\Users\Lucas\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\Lucas\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\Lucas\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\Lucas\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\Lucas\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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Lucas\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main_init_.py", line 236, in execute
blender_code = generate_blender_code(context.scene.gpt4_chat_input, context.scene.gpt4_chat_history)
File "C:\Users\Lucas\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main_init_.py", line 98, in generate_blender_code
response = openai.ChatCompletion.create(
File "C:\Users\Lucas\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\Lucas\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\Lucas\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\Lucas\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\Lucas\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.RateLimitError: You exceeded your current quota, please check your plan and billing details.
Error: Python: Traceback (most recent call last):
File "C:\Users\Lucas\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main_init
.py", line 91, in generate_blender_code
response = openai.ChatCompletion.create(
File "C:\Users\Lucas\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\Lucas\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\Lucas\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\Lucas\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\Lucas\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

@AKhilRaghav0
Copy link

The second error is a RateLimitError caused by exceeding the current quota limit for OpenAI API usage. This error is raised by the OpenAI API when trying to create a chat completion.
This error occurs when the quota limit for the OpenAI API usage has been reached. To resolve this error, either the API usage needs to be reduced, or the account needs to be upgraded to a plan with a higher quota limit.

@0xgogo
Copy link
Author

0xgogo commented Mar 27, 2023

@AKhilRaghav0 , thank you for your response. I have subscribed to GPT Plus, but the error appeared when I wasn't using it. The application functions flawlessly on the website; however, I am uncertain as to why I encounter issues when attempting to use the chat feature in Blender.

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

2 participants