There has been a significant refactor of the LangChain codebase earlier this year. For e.g., the langchain package itself has been split into langchain, langchain-core and langchain-community. Additionally, some functionality has been moved into "partner" packages including that related to ChatOpenAI - moved to the langchain-openai package.
To work right off the bat, the tutorial will have to be modified to reflect these changes.