mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-04 19:29:27 -05:00
refac: auto completion
This commit is contained in:
@@ -151,15 +151,19 @@
|
||||
Highlight,
|
||||
Typography,
|
||||
Placeholder.configure({ placeholder }),
|
||||
AIAutocompletion.configure({
|
||||
generateCompletion: async (text) => {
|
||||
if (text.trim().length === 0) {
|
||||
return null;
|
||||
}
|
||||
...(autocomplete
|
||||
? [
|
||||
AIAutocompletion.configure({
|
||||
generateCompletion: async (text) => {
|
||||
if (text.trim().length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return 'AI-generated suggestion';
|
||||
}
|
||||
})
|
||||
return 'AI-generated suggestion';
|
||||
}
|
||||
})
|
||||
]
|
||||
: [])
|
||||
],
|
||||
content: content,
|
||||
autofocus: true,
|
||||
|
||||
Reference in New Issue
Block a user