Open gubingwang7 opened 1 month ago
Hey @gubingwang7, I'm here to help you with any bugs or questions you have. Just let me know what you need assistance with!
The error message "the model gpt-4o does not exist or you do not have access to it" indicates that the model gpt-4o
is either not available or not accessible with your current OpenAI API key. The litellm
library supports several models, but gpt-4o
is not listed among them. The available models are:
"text-embedding-3-small"
"text-embedding-3-large"
"sparse"
"hybrid-embed"
"gpt-4o-mini"
"gpt-4o-2024-08-06"
"claude-3-5-sonnet-20240620"
[1][2].To resolve this issue, you should verify that you are using one of the supported models. If you intended to use a different model, ensure that it is correctly named and accessible with your API key. If you are using a free account, some models might not be available to you. You may need to check the OpenAI API documentation or your account settings for more details on model availability.
To continue talking to Dosu, mention @dosu.
I had the same problem and solved it: This error is because you do not have an available Openai API KEY, you have to go to the openai website to apply. Then make sure you have a quota for the API KEY, and save the API key to your system environment variable: write it in the following format: OPENAI_API_KEY [your API KEY] In short, it may be that your environment variables are not matched; Or maybe your API KEY is out of quota. This prevents access to GPT, so the error message is Litellm Notfound
Hi team, I encountered the error code "the model gpt-4o does not exist or you do not have access to it", I created a project API key from OpenAI, and I am using the free account. You can see the code below, and let me know if you need extra info to solve this problem: