feat(server): new prompt for expand mind map (#6678)

feat(server): new prompt for expand mind map

feat: add migration file
This commit is contained in:
doouding
2024-04-24 07:10:11 +00:00
parent e5baa81a50
commit 6525c99631
4 changed files with 37 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ export const promptKeys = [
'Change tone to',
'Brainstorm ideas about this',
'Brainstorm mindmap',
'Expand mind map',
'Improve writing for it',
'Improve grammar for it',
'Fix spelling for it',

View File

@@ -252,6 +252,14 @@ export function setupAIProvider() {
});
});
provideAction('expandMindmap', options => {
return textToText({
...options,
content: options.input,
promptName: 'Expand mind map',
});
});
provideAction('explain', options => {
return textToText({
...options,