From ed5de75f12ccd2170ef826f172fdac24f3ebbb24 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Wed, 9 Oct 2024 10:46:50 +0800 Subject: [PATCH] refactor(editor): remove 'Translate' prompt from BubbleMenuPrompts This commit eliminates the 'Translate' prompt from the BubbleMenuPrompts array in the article-prompts.ts file, effectively --- web/core/lib/editor/prompts/article-prompts.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/web/core/lib/editor/prompts/article-prompts.ts b/web/core/lib/editor/prompts/article-prompts.ts index 484867d..b2b3c71 100644 --- a/web/core/lib/editor/prompts/article-prompts.ts +++ b/web/core/lib/editor/prompts/article-prompts.ts @@ -36,15 +36,7 @@ export const ToolbarMenuPrompts: PromptAction[] = [ }, ]; -export const BubbleMenuPrompts: PromptAction[] = [ - { - name: 'Translate', - i18Name: true, - template: `You are an assistant helping to translate a sentence. Output in markdown format. \n ###\${${DefinedVariable.SELECTION}}###`, - facetType: FacetType.BUBBLE_MENU, - outputForm: OutputForm.STREAMING, - } -]; +export const BubbleMenuPrompts: PromptAction[] = []; export const SlashCommandsPrompts: PromptAction[] = [ {