Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(api): align the datasource docstrings with their signatures (#42369)

陈志谦47a28bf2622b
diff --git a/api/core/datasource/datasource_manager.py b/api/core/datasource/datasource_manager.py
index f0dcb13b622..b96d98d3f9c 100644
--- a/api/core/datasource/datasource_manager.py
+++ b/api/core/datasource/datasource_manager.py
@@ -115,7 +115,7 @@ class DatasourceManager:
"""
get the datasource runtime
- :param provider_type: the type of the provider
+ :param datasource_type: the type of the datasource
:param provider_id: the id of the provider
:param datasource_name: the name of the datasource
:param tenant_id: the tenant id
diff --git a/api/core/datasource/entities/datasource_entities.py b/api/core/datasource/entities/datasource_entities.py
index 443b503a693..af9b63ad723 100644
--- a/api/core/datasource/entities/datasource_entities.py
+++ b/api/core/datasource/entities/datasource_entities.py
@@ -93,7 +93,7 @@ class DatasourceParameter(PluginParameter):
:param required: if the parameter is required
:param options: the options of the parameter
"""
- # convert options to ToolParameterOption
+ # convert options to PluginParameterOption
# FIXME fix the type error
if options:
option_objs = [