sambecker / exif-photo-blog

Photo blog, reporting 🤓 EXIF camera details (aperture, shutter speed, ISO) for each image.
https://photos.sambecker.com
736 stars 130 forks source link

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

Closed javier3434 closed 3 months ago

javier3434 commented 3 months ago

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 commented 3 months ago

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.

ctrl-beep commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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!