merge 并添加新模型mini

This commit is contained in:
sijinhui
2024-07-19 13:03:36 +08:00
parent 35532f8781
commit 69c434c047
3 changed files with 13 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import {
DEFAULT_MODELS,
DEFAULT_SYSTEM_TEMPLATE,
KnowledgeCutOffDate,
ServiceProvider,
StoreKey,
SUMMARIZE_MODEL,
GEMINI_SUMMARIZE_MODEL,

View File

@@ -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 =