Transcribe: cannot import name 'OpenAI' from 'openai'

Hi!I’m using OpenAI version 0.27.6 and Python 3.11.5. When I try from openai import OpenAI , it gives me an error: “cannot import name ‘OpenAI’ from ‘openai’”. I’m attempting to transcribe audio with the following code: transcript ="whisper-1", file=audio_file) .


Why are you doing that? current version is 1.10!

pip install -U openai


I am using this older version because it better suits the code I am using (I am working with langchain and it runs more smoothly with this version). Where can I see from which version the ‘from OpenAI’ is available?"

probably switching from 0.x.x to 1.0.0 :thinking:

you’ll have to look at the github repo