feat: merge upstream artifacts features

This commit is contained in:
Hk-Gosuto
2024-10-20 17:04:24 +08:00
parent d781d61907
commit e3600f5acb
12 changed files with 687 additions and 48 deletions

View File

@@ -53,6 +53,10 @@ export const DEFAULT_CONFIG = {
enableAutoGenerateTitle: true,
sidebarWidth: DEFAULT_SIDEBAR_WIDTH,
enableArtifacts: true, // show artifacts config
enableCodeFold: true, // code fold config
disablePromptHint: false,
dontShowMaskSplashScreen: false, // dont show splash screen when create chat

View File

@@ -18,6 +18,8 @@ export type Mask = {
lang: Lang;
builtin: boolean;
usePlugins?: boolean;
enableArtifacts?: boolean;
enableCodeFold?: boolean;
};
export const DEFAULT_MASK_STATE = {