AttributeError: module 'openai' has no attribute 'ChatCompletion'

They have not released the version with the ChatCompletion api … you need to grab ‘main’ from the python-openai repo as your dependency to have this work now. I am sure they will release soon.

1 Like