|
@@ -27,6 +27,7 @@ export const DEFAULT_CONFIG = {
|
|
|
theme: Theme.Auto as Theme,
|
|
|
tightBorder: !!getClientConfig()?.isApp,
|
|
|
sendPreviewBubble: true,
|
|
|
+ enableAutoGenerateTitle: true,
|
|
|
sidebarWidth: 300,
|
|
|
|
|
|
disablePromptHint: false,
|
|
@@ -147,7 +148,7 @@ export const useAppConfig = create<ChatConfigStore>()(
|
|
|
}),
|
|
|
{
|
|
|
name: StoreKey.Config,
|
|
|
- version: 3.6,
|
|
|
+ version: 3.7,
|
|
|
migrate(persistedState, version) {
|
|
|
const state = persistedState as ChatConfig;
|
|
|
|
|
@@ -170,6 +171,10 @@ export const useAppConfig = create<ChatConfigStore>()(
|
|
|
state.modelConfig.enableInjectSystemPrompts = true;
|
|
|
}
|
|
|
|
|
|
+ if (version < 3.7) {
|
|
|
+ state.enableAutoGenerateTitle = true;
|
|
|
+ }
|
|
|
+
|
|
|
return state as any;
|
|
|
},
|
|
|
},
|