SP
I am getting "throw new Error("(Azure) OpenAI API key not found"); ^ Error: (Azure) OpenAI API key not found" how to resolve this EDIT: issue is solved by passing the path of your config.env file inside config CODE BELOW: BEFORE: import * as dotenv from "dotenv"; dotenv.config(); AFTER: import dotenv from "dotenv"; dotenv.config({ path: "./config.env" }); also carefully check for any spaces in after the = sign in your env file. eg: ENV_VAR<space>=<space>ENV_VALUE just delete those spaces.