mshumer / gpt-prompt-engineer

MIT License
9.36k stars 643 forks source link

Openai ChatCompletion no longer supported? #24

Open Neppy7221 opened 8 months ago

Neppy7221 commented 8 months ago

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

Levilian commented 7 months ago

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