79613067

Date: 2025-05-08 19:48:55
Score: 1.5
Natty:
Report link

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/

Reasons:
  • RegEx Blacklisted phrase (1): I'm getting the following error
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: wazidmirza