From cb62fa763483c24229b92ec9bfe2284c971b902c Mon Sep 17 00:00:00 2001 From: sijinhui Date: Tue, 14 May 2024 13:48:12 +0800 Subject: [PATCH] add gpt-4o --- app/constant.ts | 23 +++++++---------------- app/store/config.ts | 4 ++-- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/app/constant.ts b/app/constant.ts index b6d53602c..8e6e317bb 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -130,6 +130,7 @@ export const GEMINI_SUMMARIZE_MODEL = "gemini-pro"; export const KnowledgeCutOffDate: Record = { default: "2021-09", + "gpt-4o": "2023-10", "gpt-4-turbo": "2023-12", "gpt-4-turbo-2024-04-09": "2023-12", "gpt-4-turbo-preview": "2023-12", @@ -234,16 +235,6 @@ export const DEFAULT_MODELS = [ // describe: "GPT-4,聪明,贵,慢", // available: false, // }, - // { - // name: "gpt-4-0125-preview", - // describe: "GPT-4,最新版,推荐", - // available: true, - // provider: { - // id: "openai", - // providerName: "OpenAI", - // providerType: "openai", - // }, - // }, { name: "gpt-35-turbo-0125", describe: "GPT-3,微软,备用", @@ -295,13 +286,13 @@ export const DEFAULT_MODELS = [ }, }, { - name: "gemini-pro-vision", - available: false, - describe: "谷歌多模态,图像识别", + name: "gpt-4o", + describe: "GPT-4,最新版,省着点用", + available: true, provider: { - id: "google", - providerName: "Google", - providerType: "google", + id: "openai", + providerName: "OpenAI", + providerType: "openai", }, }, // { diff --git a/app/store/config.ts b/app/store/config.ts index 7cf99af87..763d12ae5 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore( }), { name: StoreKey.Config, - version: 3.8996, + version: 3.8997, migrate(persistedState, version) { const state = persistedState as ChatConfig; @@ -168,7 +168,7 @@ export const useAppConfig = createPersistStore( if (version < 3.8) { state.lastUpdate = Date.now(); } - if (version < 3.8996) { + if (version < 3.8997) { state.lastUpdate = Date.now(); return { ...DEFAULT_CONFIG }; }