forked from open-webui/open-webui
feat: batch doc tagging
This commit is contained in:
parent
63628a70a6
commit
92c922b061
3 changed files with 199 additions and 36 deletions
|
@ -5,7 +5,8 @@ export const createNewDoc = async (
|
|||
collection_name: string,
|
||||
filename: string,
|
||||
name: string,
|
||||
title: string
|
||||
title: string,
|
||||
content: object | null = null
|
||||
) => {
|
||||
let error = null;
|
||||
|
||||
|
@ -20,7 +21,8 @@ export const createNewDoc = async (
|
|||
collection_name: collection_name,
|
||||
filename: filename,
|
||||
name: name,
|
||||
title: title
|
||||
title: title,
|
||||
...(content ? { content: JSON.stringify(content) } : {})
|
||||
})
|
||||
})
|
||||
.then(async (res) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue