Javascript – TypeError: OpenAIApi is not a constructor
i got error: const openai = new OpenAIApi({ key: apiKey }); ^ TypeError: OpenAIApi is not a constructor when I'm trying to create an openai api using nodejs(v16.7.0). I've follow the code in documentation and installed the openai api(v4.3.1) code…