mshumer / gpt-prompt-engineer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Openai ChatCompletion no longer supported?

Neppy7221 opened this issue · 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

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