From 55a90a4dea2f3723483910b7a97892eca7b2d0dc Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 11 May 2024 22:30:11 +0800 Subject: [PATCH] feat: disable ai score --- src/app/api/score/route.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/api/score/route.ts b/src/app/api/score/route.ts index 51cc7f636b..2621712803 100644 --- a/src/app/api/score/route.ts +++ b/src/app/api/score/route.ts @@ -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" }, })