AutoGPT: Error: The model: `gpt-4` does not exist

Discussed in https://github.com/Significant-Gravitas/Auto-GPT/discussions/423

I ran it with the –gpt4only parameter openai.error.InvalidRequestError: The model: **gpt-4** does not exist. Although active GPT4 subscription and not at API-limit

alt text

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\marti\AI\Auto-GPT\autogpt\__main__.py", line 5, in <module>
    autogpt.cli.main()
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1635, in invoke
    rv = super().invoke(ctx)
         ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AI\Auto-GPT\autogpt\cli.py", line 151, in main
    agent.start_interaction_loop()
  File "C:\Users\marti\AI\Auto-GPT\autogpt\agent\agent.py", line 75, in start_interaction_loop
    assistant_reply = chat_with_ai(
                      ^^^^^^^^^^^^^
  File "C:\Users\marti\AI\Auto-GPT\autogpt\chat.py", line 159, in chat_with_ai
    assistant_reply = create_chat_completion(
                      ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AI\Auto-GPT\autogpt\llm_utils.py", line 93, in create_chat_completion
    response = openai.ChatCompletion.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
                           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai\api_requestor.py", line 226, in request
    resp, got_stream = self._interpret_response(result, stream)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai\api_requestor.py", line 619, in _interpret_response
    self._interpret_response_line(
  File "C:\Users\marti\AppData\Local\Programs\Python\Python311\Lib\site-packages\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

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 9
  • Comments: 21 (4 by maintainers)

Most upvoted comments

gpt-4 model is in beta. It’s not open to the public. You can’t use gpt-4 yet.

The openai python module will say that the model doesn’t exist if your api key doesn’t have access to gpt-4.

Anyway, the plus api key doesn’t seem to be the same as the gpt-4 api key so you’ll have to request an api key here

https://openai.com/waitlist/gpt-4-api

Same error over here when using autogpt docker container

same problem, can not get GPT4 to work, and i´m on sub

Seeing the same.

Looks like you have to sign up to the waitlist https://openai.com/waitlist/gpt-4-api

Was having this issue.

Regenerated API Key, issue solved

Gpt 4 Is not available to the public through the api only thought the web chat interface until it is opened to the public use 3.5 turbo

For me it’s working with GPT4 Only Mode: ENABLED on the latest master.

Yes gpt 3 works, but I’d like to use GPT4 😃

We have to pay in order to use the openai api .

I have been using gpt-4 for the last week without a problme (or, not that kind of problem at least). Since yesterday evening all I get is the above error. Someone has done something either in autogpt or at openai. Have the API changed, or have the way autogpt specifies model changed?

Same here. And I use to have access to GPT4, maybe my access was revoked if that’s even possible? I did make the AI do some spicy stuff, for science!

@yiransii then maybe --gpt3only should be default?

Yes gpt 3 works, but I’d like to use GPT4 😃

I hella misread this whole ass post. sorry!