From 69c434c04724f3fc1b42eb81f40b105309c5667b Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 19 Jul 2024 13:03:36 +0800 Subject: [PATCH] =?UTF-8?q?merge=20=E5=B9=B6=E6=B7=BB=E5=8A=A0=E6=96=B0?= =?UTF-8?q?=E6=A8=A1=E5=9E=8Bmini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/constant.ts | 10 ++++++++++ app/store/chat.ts | 1 + app/store/config.ts | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/constant.ts b/app/constant.ts index ee45d0e49..1a111c404 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -286,6 +286,16 @@ export const DEFAULT_MODELS = [ providerType: "azure", }, }, + { + name: "gpt-4o-mini", + describe: "新出的,可以尝鲜", + available: true, + provider: { + id: "openai", + providerName: "OpenAI", + providerType: "openai", + }, + }, { name: "gpt-4-turbo-2024-04-09", describe: "GPT-4,标准版", diff --git a/app/store/chat.ts b/app/store/chat.ts index ffc6f7c31..3cc2bbe74 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -9,6 +9,7 @@ import { DEFAULT_MODELS, DEFAULT_SYSTEM_TEMPLATE, KnowledgeCutOffDate, + ServiceProvider, StoreKey, SUMMARIZE_MODEL, GEMINI_SUMMARIZE_MODEL, diff --git a/app/store/config.ts b/app/store/config.ts index 3f60829dd..bc49b08b1 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -140,7 +140,7 @@ export const useAppConfig = createPersistStore( }), { name: StoreKey.Config, - version: 3.98, + version: 3.99, migrate(persistedState, version) { const state = persistedState as ChatConfig; @@ -176,7 +176,7 @@ export const useAppConfig = createPersistStore( // return { ...DEFAULT_CONFIG }; // } - if (version < 3.98) { + if (version < 3.99) { // state.modelConfig = DEFAULT_CONFIG.modelConfig; return { ...DEFAULT_CONFIG }; // state.modelConfig.template =