thanks, but I figured it out by asking Bing GPT why the particular line of code didn’t work. And I got this:
Turns out the code I used was no longer supported, so I had to update the code with new lines.
I’m sorry to hear that you’re having trouble with openai.chat.completions.create()
. According to a Stack Overflow post, this error message is displayed when you try to access openai.ChatCompletion
, which is no longer supported in openai>=1.0.0
. The post suggests that you can replace the function with something else to work on your version. You can also try upgrading or downgrading your installation of openai
using pip.
If you’re still encountering issues, I recommend posting a question on a relevant forum or community to get more help from experts.
1: python - OpenAI API error: "You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0" - Stack Overflow