added version 2.0

This commit is contained in:
Lukian LEIZOUR 2024-03-04 20:38:46 +01:00
parent 0163d40b4e
commit 0f18925d1a
3231 changed files with 1449 additions and 374732 deletions

View file

@ -0,0 +1,32 @@
const { SlashCommandBuilder } = require("discord.js");
//const { sendConv } = require("../../libs/mistralAiFunctions");
//const data = require("../../data.json");
module.exports = {
data: new SlashCommandBuilder()
.setName("mistral")
.setDescription("Talk to Mistral AI")
.addSubcommand((subcommand) =>
subcommand
.setName("medium")
.setDescription("Talk to Mistral AI using the medium model")
.addStringOption((option) =>
option
.setName("message")
.setDescription("What do you want to say to Mistral AI?")
.setRequired(true)
)
),
async execute(interaction) {
/*if (interaction.options.getSubcommand() === "medium") {
const message = interaction.options.getString("message");
messages = [
{ role: system, text: data.prompt },
{ role: user, text: message },
];
const chatResponse = await sendConv(messages);
console.log(chatResponse);
await interaction.reply(chatResponse);
}*/
},
};