mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 21:22:30 +08:00
feat: add setting to hide builtin masks
This commit is contained in:
@@ -29,6 +29,7 @@ export const DEFAULT_CONFIG = {
|
||||
disablePromptHint: false,
|
||||
|
||||
dontShowMaskSplashScreen: false, // dont show splash screen when create chat
|
||||
dontAddBuiltinMasks: false, // dont add builtin masks
|
||||
|
||||
modelConfig: {
|
||||
model: "gpt-3.5-turbo" as ModelType,
|
||||
|
@@ -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) =>
|
||||
({
|
||||
|
Reference in New Issue
Block a user