GPT-4-Turbo

This commit is contained in:
2023-11-07 12:19:13 -07:00
parent ee66fd27ad
commit c623b88b5e
3 changed files with 35 additions and 34 deletions

View File

@ -7,7 +7,6 @@ const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY
});
// @ts-ignore
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'You can ACTUALLY ask Himbot something! So cool!',
@ -43,7 +42,7 @@ export class UserCommand extends Command {
: await interactionOrMessage.reply({ content: '🤔 Thinking... 🤔', fetchReply: true });
const chatCompletion = await openai.chat.completions.create({
model: 'gpt-4',
model: 'gpt-4-1106-preview',
messages: [
{
role: 'user',