Next.js Discord

Discord Forum

Vercel AI-SDK problems with api key

Unanswered
White-tailed Ptarmigan posted this in #help-forum
Open in Discord
White-tailed PtarmiganOP
the vercel ai-sdk is not recognizing my api key, even though im specifying it as OPENAI_API_KEY in my .env file.

keeps giving me this error:

Incorrect API key provided: sk-1cSrJ***wjnX. You can find your API key at https://platform.openai.com/account/api-keys.

and the funny thing is i have never set/seen the key from the error xD
the error comes from the ai-sdk module

0 Replies