1
0
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:
cir9no
2024-08-23 17:51:52 +08:00
committed by GitHub
parent 18a96ed607
commit 500b1dbb6b
9 changed files with 220 additions and 13 deletions

View File

@@ -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();