AttributeError: module 'openai' has no attribute 'error'

All of these works for me:


!pip install langchain==0.0.316

!pip install openai==0.28.1


!pip install langchain==0.0.339

!pip install openai==1.3.5


!pip install langchain==0.0.343

!pip install openai== 1.3.6