mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Update endpoint name
This commit is contained in:
parent
5ec74504c4
commit
950a859e55
2 changed files with 2 additions and 2 deletions
|
|
@ -441,7 +441,7 @@ def add_file_to_knowledge_by_id(
|
|||
)
|
||||
|
||||
|
||||
@router.post("/{id}/file/sync", response_model=Optional[KnowledgeFilesResponse])
|
||||
@router.post("/{id}/sync", response_model=Optional[KnowledgeFilesResponse])
|
||||
def sync_file_to_knowledge_by_id(
|
||||
request: Request,
|
||||
id: str,
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ export const addFileToKnowledgeById = async (token: string, id: string, fileId:
|
|||
export const syncFileToKnowledgeById = async (token: string, id: string, fileId: string) => {
|
||||
let error = null;
|
||||
|
||||
const res = await fetch(`${WEBUI_API_BASE_URL}/knowledge/${id}/file/sync`, {
|
||||
const res = await fetch(`${WEBUI_API_BASE_URL}/knowledge/${id}/sync`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
|
|
|
|||
Loading…
Reference in a new issue