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

OpenAI connection error: "The model gpt-4o does not exist or you do not have access to it." #110

Closed
javier3434 opened this issue Jun 16, 2024 · 4 comments
Labels
troubleshooting Debugging user application

Comments

@javier3434
Copy link

Describe the bug
Excuse me ,sir ,i encoutered an issue when i try to enable openai intergration.I have subscribed openai plus.and did it twice follow your instructions:
"Setup OpenAI
If you don't already have one, create an OpenAI account
Generate an API key and store in environment variable OPENAI_SECRET_KEY
Setup usage limits to avoid unexpected charges (recommended)"
but there is connection error occured.

Does your template use custom code?
i almost added nothing

Steps to Reproduce
1.set OPENAI_SECRET_KEY in .env.local or vercel env variables
2.redirect to /admin/configuration
3.error text ocurres

Screenshots
image
image

THANKS in advance for any advice.

@sambecker
Copy link
Owner

That is quite odd.

How recently did you upgrade your OpenAI account?

Can you confirm your API key has adequate scopes/permissions? And the full key has been stored in your environment variables, and it's not missing any characters?

If nothing seems to help, it might be worth generating a new OpenAI key.

@sambecker sambecker added the troubleshooting Debugging user application label Jun 17, 2024
@ctrl-beep
Copy link

I am also facing this issue, but I do not hold a subscription - IG am on the free-tier but what do I do? 🤔

@javier3434
Copy link
Author

oh i figured it out. Actually it requires 5$ at least recharge for chatgpt api account. instead of subscribe chatgpt plus.
check "https://community.openai.com/t/openai-error-invalidrequesterror-the-model-gpt-4-does-not-exist-or-you-do-not-have-access-to-it/376230" if someone have same issue...

@ctrl-beep
Copy link

oh i figured it out. Actually it requires 5$ at least recharge for chatgpt api account. instead of subscribe chatgpt plus. check "https://community.openai.com/t/openai-error-invalidrequesterror-the-model-gpt-4-does-not-exist-or-you-do-not-have-access-to-it/376230" if someone have same issue...

Ah! I see - alright!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
troubleshooting Debugging user application
Projects
None yet
Development

No branches or pull requests

3 participants