Set chatgpt model to gpt4
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user