禁止管理员外用户使用某些模型

This commit is contained in:
sijinhui
2024-07-01 17:53:59 +08:00
parent 7603b21cbc
commit 9bab4b736f
3 changed files with 10 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ export const useAppConfig = createPersistStore(
}),
{
name: StoreKey.Config,
version: 3.95,
version: 3.96,
migrate(persistedState, version) {
const state = persistedState as ChatConfig;
@@ -174,7 +174,7 @@ export const useAppConfig = createPersistStore(
// return { ...DEFAULT_CONFIG };
// }
if (version < 3.95) {
if (version < 3.96) {
state.modelConfig = DEFAULT_CONFIG.modelConfig;
// state.modelConfig.template =
// state.modelConfig.template !== DEFAULT_INPUT_TEMPLATE