From 7076740ac3b7ce41f83ed293dfe1d15fe10eaf0f Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Wed, 9 Aug 2023 00:27:25 +0200 Subject: [PATCH] update endpoint --- commands/message/fun/chat.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/message/fun/chat.js b/commands/message/fun/chat.js index b9f4bc0..c450022 100644 --- a/commands/message/fun/chat.js +++ b/commands/message/fun/chat.js @@ -22,14 +22,15 @@ module.exports = { context.triggerTyping(); if(!args.text) return editOrReply(context, {embeds:[createEmbed("warning", context, `Missing Parameter (text).`)]}) try{ - let res = await superagent.post(`${process.env.AI_SERVER}/chatgpt`) + let res = await superagent.post(`${process.env.AI_SERVER}/openai`) .set({ Authorization: process.env.AI_SERVER_KEY }) .send({ prompt: "You are a friendly chat bot designed to help people. You should always use gender neutral pronouns when possible.", input: [args.text], - temperature: 0.6 + temperature: 0.6, + model: "CHATGPT" }) return editOrReply(context, {embeds:[createEmbed("default", context, { description: codeblock("ansi", ["šŸ‘¤ " + format(args.text, "cyan") + "\nšŸ¤– " + res.body.output.substr(0, 2000 - args.text.length)]),