From 888642f154703e06c1d6f85f1a423ad9107fd93e Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Sun, 26 Mar 2023 15:47:30 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/api/chat/gpt3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/chat/gpt3.ts b/src/pages/api/chat/gpt3.ts index b9997bd0e..611f372c2 100644 --- a/src/pages/api/chat/gpt3.ts +++ b/src/pages/api/chat/gpt3.ts @@ -151,7 +151,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) // 只有使用平台的 key 才计费 !userApiKey && pushChatBill({ - modelName: model.service.chatModel, + modelName: model.service.modelName, userId, chatId, text: promptText + responseContent