Merge pull request #2256 from marcusschiesser/main

feat: add setting to hide built-in masks
This commit is contained in:
Yifei Zhang
2023-07-05 22:30:28 +08:00
committed by GitHub
17 changed files with 135 additions and 31 deletions

View File

@@ -32,6 +32,7 @@ export const DEFAULT_CONFIG = {
disablePromptHint: false,
dontShowMaskSplashScreen: false, // dont show splash screen when create chat
dontAddBuiltinMasks: false, // dont add builtin masks
models: DEFAULT_MODELS as any as LLMModel[],

View File

@@ -90,6 +90,7 @@ export const useMaskStore = create<MaskStore>()(
(a, b) => b.id - a.id,
);
const config = useAppConfig.getState();
if (config.dontAddBuiltinMasks) return userMasks;
const buildinMasks = BUILTIN_MASKS.map(
(m) =>
({