Set chatgpt model to gpt4

This commit is contained in:
2023-11-13 00:07:15 +01:00
parent f709282ca1
commit 118a1a72e3

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