Skip to content

Commit

Permalink
chore: update menu
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 12, 2023
1 parent c9f3b25 commit 7afc904
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/core/lib/editor/prompts/article-prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down
2 changes: 2 additions & 0 deletions web/studio/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const resources = {
'Simplify Content': 'Simplify Content',
'Translate': 'Translate',
'Generate Outline': 'Generate Outline',
'Look up': 'Look up',
}
},
zh: {
Expand All @@ -104,6 +105,7 @@ const resources = {
'Simplify Content': '精简内容',
'Translate': '翻译',
'Generate Outline': '生成大纲',
'Look up': '检索',
}
}
}
Expand Down

0 comments on commit 7afc904

Please sign in to comment.