diff --git a/api/controllers/console/datasets/external.py b/api/controllers/console/datasets/external.py index e7f0bf7ab8d53b..dcef979360ba62 100644 --- a/api/controllers/console/datasets/external.py +++ b/api/controllers/console/datasets/external.py @@ -5,7 +5,6 @@ import services from controllers.console import api -from controllers.console.app.error import ProviderNotInitializeError from controllers.console.datasets.error import DatasetNameDuplicateError from controllers.console.setup import setup_required from controllers.console.wraps import account_initialization_required diff --git a/api/services/external_knowledge_service.py b/api/services/external_knowledge_service.py index eed6706f46cb47..4efdf8d7dbe75b 100644 --- a/api/services/external_knowledge_service.py +++ b/api/services/external_knowledge_service.py @@ -1,25 +1,19 @@ import json -import random -import time from copy import deepcopy from datetime import datetime, timezone from typing import Any, Optional, Union -import boto3 import httpx import validators # from tasks.external_document_indexing_task import external_document_indexing_task -from configs import dify_config from core.helper import ssrf_proxy from extensions.ext_database import db from models.dataset import ( Dataset, - Document, ExternalKnowledgeApis, ExternalKnowledgeBindings, ) -from models.model import UploadFile from services.entities.external_knowledge_entities.external_knowledge_entities import ( Authorization, ExternalKnowledgeApiSetting,