微调,无关紧要

This commit is contained in:
sijinhui 2024-02-20 17:10:24 +08:00
parent c758cf469b
commit 21d534ea2e
3 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ function DateSelectComponent({ currentDate, setCurrentDate }: ComponentProps) {
case "ArrowRight": case "ArrowRight":
if (currentDate) { if (currentDate) {
const temp_date = addDays(currentDate, 1); const temp_date = addDays(currentDate, 1);
if (temp_date < maxDate) { if (temp_date <= maxDate) {
setCurrentDate(temp_date); setCurrentDate(temp_date);
} }
} }

View File

@ -157,7 +157,7 @@ export const DEFAULT_MODELS = [
{ {
name: "gpt-4-1106-preview", name: "gpt-4-1106-preview",
describe: "GPT-4,备用", describe: "GPT-4,备用",
available: true, available: false,
provider: { provider: {
id: "openai", id: "openai",
providerName: "OpenAI", providerName: "OpenAI",

View File

@ -137,7 +137,7 @@ export const useAppConfig = createPersistStore(
}), }),
{ {
name: StoreKey.Config, name: StoreKey.Config,
version: 3.897, version: 3.898,
migrate(persistedState, version) { migrate(persistedState, version) {
const state = persistedState as ChatConfig; const state = persistedState as ChatConfig;
@ -168,7 +168,7 @@ export const useAppConfig = createPersistStore(
if (version < 3.8) { if (version < 3.8) {
state.lastUpdate = Date.now(); state.lastUpdate = Date.now();
} }
if (version < 3.897) { if (version < 3.898) {
state.lastUpdate = Date.now(); state.lastUpdate = Date.now();
return { ...DEFAULT_CONFIG }; return { ...DEFAULT_CONFIG };
} }