Set chatgpt model to gpt4
parent
f709282ca1
commit
118a1a72e3
|
@ -12,7 +12,10 @@ module.exports = function (bot, api) {
|
||||||
|
|
||||||
async function getChatGPTResponse(prompt) {
|
async function getChatGPTResponse(prompt) {
|
||||||
const api = new ChatGPTAPI({
|
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);
|
const res = await api.sendMessage(prompt);
|
||||||
|
|
Loading…
Reference in New Issue