feat: add name limit

This commit is contained in:
2023-11-13 17:04:19 +01:00
parent 2ce9a56d70
commit 9ccad393d0
3 changed files with 69 additions and 3 deletions

View File

@ -18,7 +18,7 @@ function processChatGptResult(resultString: string) {
export async function chat(prompt: string, { isList, temperature }: { isList?: boolean, temperature?: number } = {}) {
const chatCompletion = await openai.chat.completions.create({
model: "gpt-4",
model: "gpt-3.5-turbo",
temperature: temperature ?? 0.9,
messages: [
{