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);