From cdbba1400c25c521aa9ba2ffcec1ef09b1eda408 Mon Sep 17 00:00:00 2001 From: Dongyu Li <544104925@qq.com> Date: Tue, 1 Jul 2025 11:57:06 +0800 Subject: [PATCH] feat(datasource): update fetch_datasource_provider --- api/core/plugin/impl/datasource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/plugin/impl/datasource.py b/api/core/plugin/impl/datasource.py index 4d90685d24..97c9428bde 100644 --- a/api/core/plugin/impl/datasource.py +++ b/api/core/plugin/impl/datasource.py @@ -10,7 +10,7 @@ from core.datasource.entities.datasource_entities import ( OnlineDriveDownloadFileRequest, WebsiteCrawlMessage, ) -from core.plugin.entities.plugin import GenericProviderID, ToolProviderID +from core.plugin.entities.plugin import DatasourceProviderID, GenericProviderID from core.plugin.entities.plugin_daemon import ( PluginBasicBooleanResponse, PluginDatasourceProviderEntity, @@ -61,7 +61,7 @@ class PluginDatasourceManager(BasePluginClient): if provider_id == "langgenius/file/file": return PluginDatasourceProviderEntity(**self._get_local_file_datasource_provider()) - tool_provider_id = ToolProviderID(provider_id) + tool_provider_id = DatasourceProviderID(provider_id) def transformer(json_response: dict[str, Any]) -> dict: data = json_response.get("data")