feat(knowledge): 展示文档处理进度并自动衔接导入索引
This commit is contained in:
@@ -392,7 +392,7 @@ export class CloudAgentsModule {
|
||||
const body = await this.pickUpload();
|
||||
if (!body) return null;
|
||||
const result = record(await this.request(`/api/makelore/agents/${slug}/knowledge/${kbId}/files?operation_id=${operationId}` + (replacement ? '&replaces_file_id=' + replacement : ''), 'POST', body));
|
||||
return Object.fromEntries(['file_id', 'name', 'size', 'status', 'error', 'chunk_count'].map(key => [key, result[key]]));
|
||||
return Object.fromEntries(['file_id', 'name', 'size', 'status', 'error', 'chunk_count', 'available', 'replaces_file_id', 'processing_task'].map(key => [key, result[key]]));
|
||||
}
|
||||
|
||||
async uploadSkill(): Promise<unknown> {
|
||||
|
||||
Reference in New Issue
Block a user