Skip to content

Commit 2bb8181

Browse files
committed
PromptFineTuning
1 parent b455d54 commit 2bb8181

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ interface BlockNoteEditorProps {
5454
provider: HocuspocusProvider;
5555
}
5656

57+
const toto = createAIExtension({
58+
stream: false,
59+
model,
60+
agentCursor: {
61+
name: 'Albert',
62+
color: '#8bc6ff',
63+
},
64+
});
65+
5766
export const BlockNoteEditor = ({ doc, provider }: BlockNoteEditorProps) => {
5867
const { user } = useAuth();
5968
const { setEditor } = useEditorStore();
@@ -153,6 +162,23 @@ export const BlockNoteEditor = ({ doc, provider }: BlockNoteEditorProps) => {
153162
name: 'Albert',
154163
color: '#8bc6ff',
155164
},
165+
// promptBuilder: async (editor, opts) => {
166+
// if (opts.selectedBlocks) {
167+
// const data = await getDataForPromptWithSelection(editor, {
168+
// selectedBlocks: opts.selectedBlocks,
169+
// });
170+
// return promptManipulateSelectionJSONBlocks({
171+
// ...data,
172+
// userPrompt: opts.userPrompt,
173+
// });
174+
// } else {
175+
// const data = await getDataForPromptNoSelection(editor, opts);
176+
// return promptManipulateDocumentUseJSONBlocks({
177+
// ...data,
178+
// userPrompt: opts.userPrompt,
179+
// });
180+
// }
181+
// },
156182
}),
157183
],
158184
tables: {

0 commit comments

Comments
 (0)