mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
feat: init sdoc summary when add summary column (#6449)
* feat: init sdoc summary when add summary column * feat/meta: add summary single sdoc * optimize some naming * add summarize files api * optimize code * feat: update code * feat: optimzie code * feat: rebase code * fix/mv: fix invalid path param when create summary * feat/mv: add batch update summary text func * feat/mv: add some details in parameter judgment * feat: optimize code * feat: delete useless import * execute return api * feat/summary: execute file not found situation * fix: summary --------- Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -186,6 +186,15 @@ class MetadataManagerAPI {
|
||||
};
|
||||
return this.req.put(url, params);
|
||||
};
|
||||
|
||||
// ai
|
||||
generateSummary = (repoID, filePaths) => {
|
||||
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/ai/summarize-documents/';
|
||||
const params = {
|
||||
file_paths_list: filePaths,
|
||||
};
|
||||
return this.req.post(url, params);
|
||||
};
|
||||
}
|
||||
|
||||
const metadataAPI = new MetadataManagerAPI();
|
||||
|
Reference in New Issue
Block a user