fix(core): update prompts (#6693)

update based on latest docs
This commit is contained in:
pengx17
2024-04-25 05:26:50 +00:00
parent 20a0d0b1db
commit 050efe3749
4 changed files with 186 additions and 21 deletions

View File

@@ -32,6 +32,7 @@ export const promptKeys = [
'Make it real',
'Make it longer',
'Make it shorter',
'Continue writing',
] as const;
export type PromptKey = (typeof promptKeys)[number];

View File

@@ -308,6 +308,14 @@ export function setupAIProvider() {
promptName,
});
});
provideAction('continueWriting', options => {
return textToText({
...options,
content: options.input,
promptName: 'Continue writing',
});
});
//#endregion
AIProvider.provide('histories', {