OpenAI recently released the 1.0  of their library. In it, they've shuffled the naming of a lot. While we upgrade the course to reflect those changes, we suggest doing one of two things:


1. (easier) Use the 0.28.1 version of openai until we've upgraded! To do that:

Whenever we say: pip install openai

replace it with: pip install "openai<1"


2. (a bit harder) Use the 1.0 version of `openai` but read the migration changes outlined here: 1.0 Migration Discussion


Sorry for the inconvenience!