From bdd406ec9effd6b93a62184052f1c0d4c01cc7b6 Mon Sep 17 00:00:00 2001 From: JongHak Seo Date: Tue, 6 Feb 2024 13:43:07 +0900 Subject: [PATCH] fix: gpt model issue --- src/pages/background/lib/infra/chatGPT.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/background/lib/infra/chatGPT.ts b/src/pages/background/lib/infra/chatGPT.ts index 192667a..3a4d1e6 100644 --- a/src/pages/background/lib/infra/chatGPT.ts +++ b/src/pages/background/lib/infra/chatGPT.ts @@ -39,8 +39,7 @@ export async function chatGPT({ } let response = await requestApi(apiKey, { - model: - slot.type === "ChatGPT" ? "gpt-3.5-turbo-1106" : "gpt-4-1106-preview", + model: slot.type === "ChatGPT" ? "gpt-3.5-turbo" : "gpt-4", max_tokens: slot.maxTokens, messages, stream: true, @@ -53,7 +52,7 @@ export async function chatGPT({ await handleError(response, async () => { response = await requestApi(apiKey, { model: - slot.type === "ChatGPT" ? "gpt-3.5-turbo-1106" : "gpt-4-1106-preview", + slot.type === "ChatGPT" ? "gpt-3.5-turbo-0125" : "gpt-4-turbo-preview", max_tokens: slot.maxTokens, messages, stream: true,