From 50292ba008abc4e0eed2798ba53f1ca68d3e7669 Mon Sep 17 00:00:00 2001 From: regischen <58546692+regischen@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:47:46 +0000 Subject: [PATCH] feat: add slide action (#6560) --- .../blocksuite/block-suite-editor/ai/provider.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/provider.ts b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/provider.ts index defbc1dea6..5aea5c9424 100644 --- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/provider.ts +++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/ai/provider.ts @@ -220,6 +220,14 @@ export function setupAIProvider() { }); }); + AIProvider.provide('createSlides', options => { + return textToText({ + ...options, + content: options.input, + promptName: 'Create a presentation', + }); + }); + AIProvider.provide('histories', { actions: async ( workspaceId: string,