gd3kr / BlenderGPT

Use commands in English to control Blender with OpenAI's GPT-4
MIT License
4.42k stars 320 forks source link

Plan and Billing #3

Open enzyme69 opened 1 year ago

enzyme69 commented 1 year ago

Quite possible because I have no Pro account, I cannot make a request. But there seems like no "free quota" at OpenAI.

Python: Traceback (most recent call last):
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/__init__.py", line 53, in generate_blender_code
    response = openai.ChatCompletion.create(
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/lib/openai/api_resources/chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/lib/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/lib/openai/api_requestor.py", line 226, in request
    resp, got_stream = self._interpret_response(result, stream)
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/lib/openai/api_requestor.py", line 619, in _interpret_response
    self._interpret_response_line(
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/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 "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/__init__.py", line 146, in execute
    blender_code = generate_blender_code(self.natural_language_input)
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/__init__.py", line 65, in generate_blender_code
    response = openai.ChatCompletion.create(
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/lib/openai/api_resources/chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/lib/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/lib/openai/api_requestor.py", line 226, in request
    resp, got_stream = self._interpret_response(result, stream)
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/lib/openai/api_requestor.py", line 619, in _interpret_response
    self._interpret_response_line(
  File "/Users/jimmygunawan/Library/Application Support/Blender/3.4/scripts/addons/BlenderGPT-main-2/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.
b03diw commented 1 year ago

I have the same problem as well. have you found the solution ?

ahmtcnr commented 1 year ago

Have you find solutions ??

raspitakesovertheworld commented 1 year ago

I get this immediately, without having used it at all, which can't be, as I have not been using my quote or anything. Any explaination why this is happening? is this a bug that prevents the plugin from working in the first place?

hemanta212 commented 1 year ago

You need to replace the line in the __init__.py file

model = "gpt-3.5-turbo"

to

model = "text-davinci-003"
Ruuubickk commented 1 year ago

You need to replace the line in the __init__.py file

model = "gpt-3.5-turbo"

to

model = "text-davinci-003"

That makes no difference on my end.

Shraknard commented 1 year ago

As the error says : You exceeded your current quota, please check your plan and billing details.

Do you pay for your GPT-4 API? Also, it seems that they have a waitlist now : https://openai.com/waitlist/gpt-4-api

AnthonyAttwood commented 1 year ago

As the error says : You exceeded your current quota, please check your plan and billing details.

Do you pay for your GPT-4 API? Also, it seems that they have a waitlist now : https://openai.com/waitlist/gpt-4-api

It may sound stupid but can you clarify something for me? I pay for Chat-GPT-4. Is this not the same thing as GPT-4 and having API access? Do I also need to pay for the API access once I'm through the waitlist?

Also, the pro version of this plugin says it lets us use GPT-4 for free through a single payment of 29.99. That's fine but what are the limitations here? Do we have a limit of commands/ prompts per day?

Just to add, I definitely haven't exceeded any credit limits of gpt-3.5 turbo. I haven't ever used it. I only have access to Chat-GPT3 and 4. And this plugin says GPT-4 does not exist.

To clarify, I got the API key from my openAI account. I don't know exactly what this key refers to though.