Deleting a branch is permanent. It CANNOT be undone. Continue?
No due date set.
This issue currently doesn't have any dependencies.
Deleting a branch is permanent. It CANNOT be undone. Continue?
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》
1、提供python sdk上传数据集。
2、通过sdk上传数据集时考虑防止攻击,限流。
3、限制一个用户同时最多传10个数据集文件。
4、用户上传的单个数据集的总大小不超过200G。
相关任务:https://openi.pcl.ac.cn/OpenIOSSG/AiForge-Doc/issues/81
后端数据集相关接口实现:2、3、4。
限流:
1、单个用户在一定的时间范围内如24小时内不能上传超过10000个文件。
2、单个用户在一定的时间范围内如24小时内不能上传超过500G的大小。
3、每次调用SDK上传数据集时进行检测,如果当前网站正在通过SDK上传文件个数大于100个,则直接对该次的SDK上传进行拒绝。
在app.ini中新增:
[flow_control]
ALL_ATTACHEMENT_NUM_SDK=100
ATTACHEMENT_NUM_A_USER_LAST24HOUR=1000
ATTACHEMENT_NUM_A_USER_LAST10M=10
ATTACHEMENT_SIZE_A_USER=500
说明:ALL_ATTACHEMENT_NUM_SDK 全网并发调用SDK上传数据集的数量不能超过100个,超过直接拒绝后续调用。
ATTACHEMENT_NUM_A_USER_LAST24HOUR 单个用户过去24小时上传超过1000个文件,拒绝再上传。直到超过24小时。
ATTACHEMENT_NUM_A_USER_LAST10M 单个用户过去10分钟内上传超过10个文件,拒绝再上传。直到超过10分钟。
ATTACHEMENT_SIZE_A_USER 单个用户过去24小时限制上传数据集大小500G
后端分支:zouap_static
SDK代码:https://openi.pcl.ac.cn/OpenIOSSG/openi-pypi dev分支
提测文档:
c8cd566c37/%e8%ae%be%e8%ae%a1%e6%96%87%e6%a1%a3/PythonSDK/%e6%95%b0%e6%8d%ae%e9%9b%86%e4%b8%8a%e4%bc%a0%e6%8f%90%e6%b5%8b%e6%96%87%e6%a1%a3.md
通过测试。遗留问题: bug #4341 , enhancement #4299