mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
@@ -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';
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user