|
19 | 19 | from controllers.console.wraps import ( |
20 | 20 | account_initialization_required, |
21 | 21 | cloud_edition_billing_knowledge_limit_check, |
22 | | - cloud_edition_billing_rate_limit_check, |
23 | 22 | cloud_edition_billing_resource_check, |
24 | 23 | setup_required, |
25 | 24 | ) |
@@ -107,7 +106,6 @@ def get(self, dataset_id, document_id): |
107 | 106 | @setup_required |
108 | 107 | @login_required |
109 | 108 | @account_initialization_required |
110 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
111 | 109 | def delete(self, dataset_id, document_id): |
112 | 110 | # check dataset |
113 | 111 | dataset_id = str(dataset_id) |
@@ -139,7 +137,6 @@ class DatasetDocumentSegmentApi(Resource): |
139 | 137 | @login_required |
140 | 138 | @account_initialization_required |
141 | 139 | @cloud_edition_billing_resource_check("vector_space") |
142 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
143 | 140 | def patch(self, dataset_id, document_id, action): |
144 | 141 | dataset_id = str(dataset_id) |
145 | 142 | dataset = DatasetService.get_dataset(dataset_id) |
@@ -195,7 +192,6 @@ class DatasetDocumentSegmentAddApi(Resource): |
195 | 192 | @account_initialization_required |
196 | 193 | @cloud_edition_billing_resource_check("vector_space") |
197 | 194 | @cloud_edition_billing_knowledge_limit_check("add_segment") |
198 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
199 | 195 | def post(self, dataset_id, document_id): |
200 | 196 | # check dataset |
201 | 197 | dataset_id = str(dataset_id) |
@@ -246,7 +242,6 @@ class DatasetDocumentSegmentUpdateApi(Resource): |
246 | 242 | @login_required |
247 | 243 | @account_initialization_required |
248 | 244 | @cloud_edition_billing_resource_check("vector_space") |
249 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
250 | 245 | def patch(self, dataset_id, document_id, segment_id): |
251 | 246 | # check dataset |
252 | 247 | dataset_id = str(dataset_id) |
@@ -307,7 +302,6 @@ def patch(self, dataset_id, document_id, segment_id): |
307 | 302 | @setup_required |
308 | 303 | @login_required |
309 | 304 | @account_initialization_required |
310 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
311 | 305 | def delete(self, dataset_id, document_id, segment_id): |
312 | 306 | # check dataset |
313 | 307 | dataset_id = str(dataset_id) |
@@ -345,7 +339,6 @@ class DatasetDocumentSegmentBatchImportApi(Resource): |
345 | 339 | @account_initialization_required |
346 | 340 | @cloud_edition_billing_resource_check("vector_space") |
347 | 341 | @cloud_edition_billing_knowledge_limit_check("add_segment") |
348 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
349 | 342 | def post(self, dataset_id, document_id): |
350 | 343 | # check dataset |
351 | 344 | dataset_id = str(dataset_id) |
@@ -412,7 +405,6 @@ class ChildChunkAddApi(Resource): |
412 | 405 | @account_initialization_required |
413 | 406 | @cloud_edition_billing_resource_check("vector_space") |
414 | 407 | @cloud_edition_billing_knowledge_limit_check("add_segment") |
415 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
416 | 408 | def post(self, dataset_id, document_id, segment_id): |
417 | 409 | # check dataset |
418 | 410 | dataset_id = str(dataset_id) |
@@ -511,7 +503,6 @@ def get(self, dataset_id, document_id, segment_id): |
511 | 503 | @login_required |
512 | 504 | @account_initialization_required |
513 | 505 | @cloud_edition_billing_resource_check("vector_space") |
514 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
515 | 506 | def patch(self, dataset_id, document_id, segment_id): |
516 | 507 | # check dataset |
517 | 508 | dataset_id = str(dataset_id) |
@@ -555,7 +546,6 @@ class ChildChunkUpdateApi(Resource): |
555 | 546 | @setup_required |
556 | 547 | @login_required |
557 | 548 | @account_initialization_required |
558 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
559 | 549 | def delete(self, dataset_id, document_id, segment_id, child_chunk_id): |
560 | 550 | # check dataset |
561 | 551 | dataset_id = str(dataset_id) |
@@ -600,7 +590,6 @@ def delete(self, dataset_id, document_id, segment_id, child_chunk_id): |
600 | 590 | @login_required |
601 | 591 | @account_initialization_required |
602 | 592 | @cloud_edition_billing_resource_check("vector_space") |
603 | | - @cloud_edition_billing_rate_limit_check("knowledge") |
604 | 593 | def patch(self, dataset_id, document_id, segment_id, child_chunk_id): |
605 | 594 | # check dataset |
606 | 595 | dataset_id = str(dataset_id) |
|
0 commit comments