How to update openai api,what's the problem

cmpletion = openai.ChatCompletion.create ( model=“gpt-3.5-turbo”, messages=[{“role”: “user”, “content”: “Tell the world about the ChatGPT API in the style of a pirate.”}])
AttributeError: module ‘openai’ has no attribute ‘ChatCompletion’

is api old?

use the code below to update your openai package.

pip install openai --upgrade`

Thank you very much.
I solve it.