mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-23 23:29:31 +01:00
enh: autocompletion
This commit is contained in:
@@ -403,6 +403,7 @@ export const generateAutoCompletion = async (
|
||||
token: string = '',
|
||||
model: string,
|
||||
prompt: string,
|
||||
messages?: object[],
|
||||
type: string = 'search query',
|
||||
) => {
|
||||
const controller = new AbortController();
|
||||
@@ -419,6 +420,7 @@ export const generateAutoCompletion = async (
|
||||
body: JSON.stringify({
|
||||
model: model,
|
||||
prompt: prompt,
|
||||
...(messages && { messages: messages }),
|
||||
type: type,
|
||||
stream: false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user