fix(core): update prompts (#6693)

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

No files matched your search

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