diff --git a/web/core/lib/editor/prompts/article-prompts.ts b/web/core/lib/editor/prompts/article-prompts.ts index 610ae45..a9acf63 100644 --- a/web/core/lib/editor/prompts/article-prompts.ts +++ b/web/core/lib/editor/prompts/article-prompts.ts @@ -88,6 +88,13 @@ const SlashCommands: PromptAction[] = [ facetType: FacetType.SLASH_COMMAND, outputForm: OutputForm.STREAMING, }, + { + name: 'Look up', + i18Name: true, + template: `You are an assistant helping a user look up a word. Output in markdown format. ###{{${DefinedVariable.BEFORE_CURSOR}}}###`, + facetType: FacetType.SLASH_COMMAND, + outputForm: OutputForm.STREAMING + } ] const ArticlePrompts: PromptAction[] = [ diff --git a/web/studio/i18n/i18n.ts b/web/studio/i18n/i18n.ts index 336c72e..6546e0f 100644 --- a/web/studio/i18n/i18n.ts +++ b/web/studio/i18n/i18n.ts @@ -83,6 +83,7 @@ const resources = { 'Simplify Content': 'Simplify Content', 'Translate': 'Translate', 'Generate Outline': 'Generate Outline', + 'Look up': 'Look up', } }, zh: { @@ -104,6 +105,7 @@ const resources = { 'Simplify Content': '精简内容', 'Translate': '翻译', 'Generate Outline': '生成大纲', + 'Look up': '检索', } } }