From 118a1a72e37fa27409e1628037e2a3b53593c376 Mon Sep 17 00:00:00 2001 From: Talon Date: Mon, 13 Nov 2023 00:07:15 +0100 Subject: [PATCH] Set chatgpt model to gpt4 --- modules/chatgpt/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/chatgpt/index.js b/modules/chatgpt/index.js index 432b168..01d5e00 100644 --- a/modules/chatgpt/index.js +++ b/modules/chatgpt/index.js @@ -12,7 +12,10 @@ module.exports = function (bot, api) { async function getChatGPTResponse(prompt) { const api = new ChatGPTAPI({ - apiKey: process.env.OPENAI_API_KEY + apiKey: process.env.OPENAI_API_KEY, + completionParams: { + model: 'gpt-4' + } }) const res = await api.sendMessage(prompt);