I'm trying to build a Discord bot that generates images, but I faced a problem. I'm getting the following error:
Configuration is not a constructor
I'm following a YouTube tutorial. I have the following code:
const { SlashCommandBuilder, EmbedBuilder} = require(discord.js
);
const { Configuration, OpenAIApi } = require("openai");
const configuration = new Configuration({ apiKey: 'My Key' }); const openai = new OpenAIApi(configuration);https://www.bastcar.com/