‘OpenAI’ object has no attribute ‘responses’

I’m getting an AttributeError: 'OpenAI' object has no attribute 'responses' when I try to use the new responses API. Any hint on what am I doing wrong?

1 Like

my fault nevermind, had problems with the venv

I also got it, how did you solved it? I am in google colab testing it.

1 Like

Same issue for me using Python in Jupyter Notebook

I fixed this by just running the code below then restarting the runtime.

!pip install --upgrade openai

2 Likes