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