feat: disable ai score

This commit is contained in:
DIYgod 2024-05-11 22:30:11 +08:00
parent 0a90202de4
commit 55a90a4dea
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -9,9 +9,9 @@ import { getQuery, NextServerResponse } from "~/lib/server-helper"
let openai: OpenAI | undefined
if (process.env.OPENAI_API_KEY) {
openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
})
// openai = new OpenAI({
// apiKey: process.env.OPENAI_API_KEY,
// })
}
const lock = new AsyncLock()
@ -60,7 +60,7 @@ ${content}
--------`,
},
],
model: "gpt-4-1106-preview",
model: "gpt-3.5-turbo",
temperature: 0,
response_format: { type: "json_object" },
})