I am using openai lib and when I createCompletion it give me this, what is the problem?
does the error came from my API Key?
My Code: https://cdn.discordapp.com/attachments/1071742339996995645/1071742592930304081/image.png
12 messages · Page 1 of 1 (latest)
I am using openai lib and when I createCompletion it give me this, what is the problem?
does the error came from my API Key?
My Code: https://cdn.discordapp.com/attachments/1071742339996995645/1071742592930304081/image.png
More than likely - error 401 is an unauthorized access return, meaning you weren't authenticated. It is likely an issue with how you are working with your API key.
Well the part of the code I show is all of my code fpr OpenAI
Okay, and you've imported any necessary libraries, you've also ensured your API key is correct?
I just install openAi lib and discordjs for discord stuff
And no I'm not sure about API KEY
I will check it again tomorrow
2am rn
I recheck the API Key again but still I get same err 
Fixed