I had the same issue because of an existing file named openai.py in the project. Removing that file has fixed the issue.
OpenAI package version : 1.61.0