Merge pull request #1046 from SuanmoSuanyangTechnology/feature/knowledgeBase_zy

feat(web): deleteDocumentChunk add force_refresh
This commit is contained in:
yingzhao
2026-05-06 18:06:41 +08:00
committed by GitHub

View File

@@ -307,7 +307,7 @@ export const updateDocumentChunk = async (kb_id:string, document_id:string, doc_
return response as any;
};
export const deleteDocumentChunk = async (kb_id: string, document_id: string, doc_id: string) => {
const response = await request.delete(`${apiPrefix}/chunks/${kb_id}/${document_id}/${doc_id}`);
const response = await request.delete(`${apiPrefix}/chunks/${kb_id}/${document_id}/${doc_id}?force_refresh=true`);
return response as any;
};
// 文档块儿创建