For me, upgrading openai did show updated version but when I ran below ` code, it showed old version:
``import openai
from packaging import version
required_version = version.parse(“1.1.1”)
current_version = version.parse(openai.version)
print(current_version)`
so i did, pip uninstall openai, then looked for any files/folder in my virtual environment and there was folder with old openai version which i manually removed, then re-activated my virtual environment and pip install openai, this worked for me.
Hope it helps!