Lesson 1: Advanced RAG Pipeline fails on OpenAI

I am trying to run locally the code for Lesson 1: Advanced RAG Pipeline fails on OpenAI

It fails calling query_engine.query with the following:

AuthenticationError: Error code: 401 - {‘error’: {‘message’: 'No such organization: … ‘code’: ‘invalid_organization’}}

The OpenAI API_Key is set correctly, as it works fine with another piece of code.

Thank you