feat: 新增URL导入功能并优化知识库文档展示样式

This commit is contained in:
wizardchen
2025-11-20 23:41:49 +08:00
parent c1f46df0dd
commit 21649b62c7
9 changed files with 532 additions and 25 deletions
+4
View File
@@ -44,6 +44,10 @@ export function uploadKnowledgeFile(kbId: string, data = {}) {
return postUpload(`/api/v1/knowledge-bases/${kbId}/knowledge/file`, data);
}
export function createKnowledgeFromURL(kbId: string, data: { url: string; enable_multimodel?: boolean }) {
return post(`/api/v1/knowledge-bases/${kbId}/knowledge/url`, data);
}
export function createManualKnowledge(kbId: string, data: { title: string; content: string; status: string }) {
return post(`/api/v1/knowledge-bases/${kbId}/knowledge/manual`, data);
}