geekan / MetaGPT

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
https://deepwisdom.ai/
MIT License
45.05k stars 5.35k forks source link

gpt-4 does not exist or you do not have access to it #237

Closed techstartupexplorer closed 1 month ago

techstartupexplorer commented 1 year ago

hello, i was trying to use gpt-4 since i have gpt4 plus subscription and gpt-3 has 4k+ limit. i always get the following error

openai.error.InvalidRequestError: The model gpt-4 does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.

any idea why can't make gpt-4 work with metagpt? while gpt3 works well.

OPENAI_API_MODEL: "gpt-4" and tried other gpt-4 model same error.

prlament commented 1 year ago

Ensure that the API key you're using has the necessary permissions to access GPT-4. https://api.openai.com/v1/models

techstartupexplorer commented 1 year ago

I've checked via that link however, i didnt see gpt-4. how can i enabled GPT-4 in the API? and get necessary permission? since i am a gpt plus subscriber

thanks!!

nevercast commented 1 year ago

ChatGPT is different to OpenAI API. You need to be a paying customer of the API service, which requires you at least have billing information added. If you don't have gpt-4 yet, it may not have been rolled out to you. See this blog post for more info.

https://openai.com/blog/gpt-4-api-general-availability

TaylorTheDeveloper commented 1 year ago

Additionally, you also need to have spent at least $1 to get on the api! https://stackoverflow.com/questions/76653119/openai-gpt-4-api-error-the-model-gpt-4-does-not-exist

vbalko commented 1 year ago

You probably dont have access to the model. You need to spend some money on api calls to get access to it.