|
@@ -47,6 +47,7 @@ export const DEFAULT_CONFIG = {
|
|
sendMemory: true,
|
|
sendMemory: true,
|
|
historyMessageCount: 4,
|
|
historyMessageCount: 4,
|
|
compressMessageLengthThreshold: 1000,
|
|
compressMessageLengthThreshold: 1000,
|
|
|
|
+ enableInjectSystemPrompts: true,
|
|
template: DEFAULT_INPUT_TEMPLATE,
|
|
template: DEFAULT_INPUT_TEMPLATE,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
@@ -146,7 +147,7 @@ export const useAppConfig = create<ChatConfigStore>()(
|
|
}),
|
|
}),
|
|
{
|
|
{
|
|
name: StoreKey.Config,
|
|
name: StoreKey.Config,
|
|
- version: 3.5,
|
|
|
|
|
|
+ version: 3.6,
|
|
migrate(persistedState, version) {
|
|
migrate(persistedState, version) {
|
|
const state = persistedState as ChatConfig;
|
|
const state = persistedState as ChatConfig;
|
|
|
|
|
|
@@ -165,6 +166,10 @@ export const useAppConfig = create<ChatConfigStore>()(
|
|
state.customModels = "claude,claude-100k";
|
|
state.customModels = "claude,claude-100k";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (version < 3.6) {
|
|
|
|
+ state.modelConfig.enableInjectSystemPrompts = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
return state as any;
|
|
return state as any;
|
|
},
|
|
},
|
|
},
|
|
},
|