diff --git a/api/controllers/console/datasets/datasets_segments.py b/api/controllers/console/datasets/datasets_segments.py index 087f6ff0649b8..7b58120a584e9 100644 --- a/api/controllers/console/datasets/datasets_segments.py +++ b/api/controllers/console/datasets/datasets_segments.py @@ -12,8 +12,11 @@ from controllers.console.app.error import ProviderNotInitializeError from controllers.console.datasets.error import InvalidActionError, NoFileUploadedError, TooManyFilesError from controllers.console.setup import setup_required -from controllers.console.wraps import account_initialization_required, cloud_edition_billing_resource_check, \ - cloud_edition_billing_knowledge_limit_check +from controllers.console.wraps import ( + account_initialization_required, + cloud_edition_billing_knowledge_limit_check, + cloud_edition_billing_resource_check, +) from core.errors.error import LLMBadRequestError, ProviderTokenNotInitError from core.model_manager import ModelManager from core.model_runtime.entities.model_entities import ModelType diff --git a/api/controllers/console/wraps.py b/api/controllers/console/wraps.py index 027da4af814d6..668d76461eff5 100644 --- a/api/controllers/console/wraps.py +++ b/api/controllers/console/wraps.py @@ -5,7 +5,6 @@ from flask_login import current_user from controllers.console.workspace.error import AccountNotInitializedError -from extensions.ext_redis import redis_client from services.feature_service import FeatureService from services.operation_service import OperationService diff --git a/api/controllers/service_api/dataset/segment.py b/api/controllers/service_api/dataset/segment.py index e02f7e4de8ec0..0849eb72ba8f7 100644 --- a/api/controllers/service_api/dataset/segment.py +++ b/api/controllers/service_api/dataset/segment.py @@ -4,8 +4,11 @@ from controllers.service_api import api from controllers.service_api.app.error import ProviderNotInitializeError -from controllers.service_api.wraps import DatasetApiResource, cloud_edition_billing_resource_check, \ - cloud_edition_billing_knowledge_limit_check +from controllers.service_api.wraps import ( + DatasetApiResource, + cloud_edition_billing_knowledge_limit_check, + cloud_edition_billing_resource_check, +) from core.errors.error import LLMBadRequestError, ProviderTokenNotInitError from core.model_manager import ModelManager from core.model_runtime.entities.model_entities import ModelType