From f4c99c9cf719ebedad984f07b6dd7a141427aca0 Mon Sep 17 00:00:00 2001 From: PaRaD1SE98 Date: Thu, 22 Jun 2023 02:11:07 +0900 Subject: [PATCH] fix: migrate modelConfig state --- app/store/config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/store/config.ts b/app/store/config.ts index b5291acd977..2b8493ca7c3 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -176,14 +176,15 @@ export const useAppConfig = create()( }), { name: StoreKey.Config, - version: 2, + version: 3, migrate(persistedState, version) { - if (version === 2) return persistedState as any; + if (version === 3) return persistedState as any; const state = persistedState as ChatConfig; state.modelConfig.sendMemory = true; state.modelConfig.historyMessageCount = 4; state.modelConfig.compressMessageLengthThreshold = 1000; + state.modelConfig.frequency_penalty = 0; state.dontShowMaskSplashScreen = false; return state;