you have to create a .txt file in the root of the project directory. and save it as .env.txt in which the api key should be stored as OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. You might also have to add it in you system’s local environment variables.