From 21d534ea2e6baf49b5607cfe8eebd12425befe03 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Tue, 20 Feb 2024 17:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=EF=BC=8C=E6=97=A0=E5=85=B3?= =?UTF-8?q?=E7=B4=A7=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app/(admin)/admin/usage-by-model-chart.tsx | 2 +- app/constant.ts | 2 +- app/store/config.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/app/(admin)/admin/usage-by-model-chart.tsx b/app/app/(admin)/admin/usage-by-model-chart.tsx index 8f785abc2..03bcbf574 100644 --- a/app/app/(admin)/admin/usage-by-model-chart.tsx +++ b/app/app/(admin)/admin/usage-by-model-chart.tsx @@ -30,7 +30,7 @@ function DateSelectComponent({ currentDate, setCurrentDate }: ComponentProps) { case "ArrowRight": if (currentDate) { const temp_date = addDays(currentDate, 1); - if (temp_date < maxDate) { + if (temp_date <= maxDate) { setCurrentDate(temp_date); } } diff --git a/app/constant.ts b/app/constant.ts index 8165a87fb..d8d61723c 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -157,7 +157,7 @@ export const DEFAULT_MODELS = [ { name: "gpt-4-1106-preview", describe: "GPT-4,备用", - available: true, + available: false, provider: { id: "openai", providerName: "OpenAI", diff --git a/app/store/config.ts b/app/store/config.ts index 0da5a272c..9b9bbbd60 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore( }), { name: StoreKey.Config, - version: 3.897, + version: 3.898, 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.897) { + if (version < 3.898) { state.lastUpdate = Date.now(); return { ...DEFAULT_CONFIG }; }