## The problem
Issue openai/openai-python#246 (closed, 27 comments): ### Describe the bug

The feature was working few hours ago, now it's giving error. 

### To Reproduce

```
import openai

openai.api_key value [redacted]

openai.ChatCompletion.create(
  model="gpt-3.5-turbo",
  messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Who won the world series in 2020?"},
        {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
        {"role": "user", "content": "Where was it played?"}
    ]
)
```

### Code snippets

_No response_

###...

## What to do
This is almost always a stale install shadowing the new package, not a bug in the library. Install openai 0.27.0 or later into the Python interpreter you are actually running, then restart the kernel or IDE:

pip install --upgrade openai

Then: in Jupyter/VS Code, restart the kernel; in PyCharm, install openai 0.27.0+ through the interpreter's package manager and restart. Also do not name your own script `openai.py`, since Python will import that instead of the package. The maintainer's advice: if in doubt, create a fresh virtualenv and install there, which multiple users confirmed works.