This commit is contained in:
Timothy Jaeryang Baek
2024-11-28 23:24:16 -08:00
parent 95000c7b15
commit fa5e1f7452
2 changed files with 40 additions and 30 deletions

View File

@@ -153,10 +153,10 @@
Placeholder.configure({ placeholder }),
AIAutocompletion.configure({
generateCompletion: async (text) => {
// Implement your AI text generation logic here
// This should return a Promise that resolves to the suggested text
if (text.trim().length === 0) {
return null;
}
console.log(text);
return 'AI-generated suggestion';
}
})