mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-23 17:26:47 +08:00
enforce default model via config.ts
This commit is contained in:
@@ -142,6 +142,9 @@ export const useAppConfig = createPersistStore(
|
||||
migrate(persistedState, version) {
|
||||
const state = persistedState as ChatConfig;
|
||||
|
||||
// optionally: hard set/reset model for everyone
|
||||
state.modelConfig.model = "gpt-4o-mini";
|
||||
|
||||
if (version < 3.4) {
|
||||
state.modelConfig.sendMemory = true;
|
||||
state.modelConfig.historyMessageCount = 4;
|
||||
|
||||
Reference in New Issue
Block a user