Set chatgpt model to gpt4

master
Talon 2023-11-13 00:07:15 +01:00
parent f709282ca1
commit 118a1a72e3
1 changed files with 4 additions and 1 deletions

View File

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