mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 14:56:59 +08:00
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:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user