#Newbie working on a project using OpenAI api ( need help)

27 messages · Page 1 of 1 (latest)

formal jackal
#

Im working on a project which gives structured guide for learning any programming language of choice. and right now i am using the free version api for testing my program. while using the api key it gives me
openai.error.AuthenticationError: <empty message>

vagrant tree
#

What version of openai are you importing?

formal jackal
#

free version

vagrant tree
#

try this

pip install openai==0.26

formal jackal
#

oh okay

#

still error

vagrant tree
#

it's a known bug, still open, I don't think you can do anything about it

formal jackal
#

oh

#

overall is the code okay?

vagrant tree
#

it's not you, it's the library, I don't fully understand it in the time I have now but I will review it this evening and update this thread here

primal bobcat
formal jackal
#

yes

#

Im using my api key

primal bobcat
#

Also, consult API docs. Engine is a deprecated field, you should be using model.

formal jackal
#

okay

#

@primal bobcat

graceful tiger
#

Did you copy paste the whole error message into Chat GPT3/4? What did chatGPT say about this error?

primal bobcat
#

Double check

formal jackal
#

Yes

#

Is this problem is due to unpaid version of OpenAI?

#

like are there any restrictions based on paid and unpaid?

vagrant tree
primal bobcat