This commit is contained in:
Lukian LEIZOUR 2023-03-28 11:18:06 +02:00
parent 94ec4debeb
commit c4f0c65098
3 changed files with 346 additions and 327 deletions

View file

@ -23,7 +23,7 @@ async function generateImage(query, ctx, bot) {
async function answerQuestion(query) {
response = await openai.createChatCompletion({
model: "gpt-3.5-turbo",
model: "gpt-4",
messages: [{ "role" : "user", "content" : query}],
temperature: 0.9,
}).catch((err) => {
@ -36,7 +36,7 @@ async function answerQuestion(query) {
async function sendConv (messages) {
response = await openai.createChatCompletion({
model: "gpt-3.5-turbo",
model: "gpt-4",
messages: messages,
temperature: 0.9,
}).catch((err) => {