enforce default model via config.ts

This commit is contained in:
DirkSchlossmacher
2024-08-09 08:45:18 +02:00
parent 2f7e78de18
commit e1ca34fcb4
3 changed files with 5 additions and 2 deletions

View File

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