forked from open-webui/open-webui
feat: documents backend integration
This commit is contained in:
parent
fe997abc6d
commit
eddb6fc7b7
6 changed files with 174 additions and 9 deletions
|
@ -111,7 +111,7 @@ type DocUpdateForm = {
|
|||
export const updateDocByName = async (token: string, name: string, form: DocUpdateForm) => {
|
||||
let error = null;
|
||||
|
||||
const res = await fetch(`${WEBUI_API_BASE_URL}/prompts/name/${name}/update`, {
|
||||
const res = await fetch(`${WEBUI_API_BASE_URL}/documents/name/${name}/update`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue