gpt-prompt-engineer icon indicating copy to clipboard operation
gpt-prompt-engineer copied to clipboard

Openai ChatCompletion no longer supported?

Open Neppy7221 opened this issue 11 months ago • 1 comments

I am getting an error and I see no one else getting the error. Does anyone have any idea how to fix this?

I have tried the `pip install openai==0.28' suggestion it told me and it didn't work. I've also tried it on Jupyter notebook but it seemed to do worse over there so I stayed over here on Google Colab.

Picture1

Neppy7221 avatar Mar 05 '24 17:03 Neppy7221

You need to use openai.chat.completions.create. Also delete the header=HEADERS line

Levilian avatar Mar 21 '24 03:03 Levilian