Revert endpoint name

This commit is contained in:
Stoyan Zlatev 2025-10-27 22:56:57 +02:00
parent 950a859e55
commit 2c5bec6f76
2 changed files with 2 additions and 2 deletions

View file

@ -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(
request: Request,
id: str,

View file

@ -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}/sync`, {
const res = await fetch(`${WEBUI_API_BASE_URL}/knowledge/${id}/file/sync`, {
method: 'POST',
headers: {
Accept: 'application/json',