Openai version compatibility

While performing lab for implementing word completion, I have found the openai version mismatch and where the scripts are not able to execute.

I think the lab openai version has to be updated from 0.28 to 1.3.2
current version may not support
response = client.chat.completions.create(