mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:06:51 +08:00
fix preview and recommend plugins
This commit is contained in:
parent
58e598dac8
commit
fd3b55cc16
@ -73,7 +73,7 @@ class DatasourceNode(Node):
|
||||
Run the datasource node
|
||||
"""
|
||||
|
||||
node_data = cast(DatasourceNodeData, self._node_data)
|
||||
node_data = self._node_data
|
||||
variable_pool = self.graph_runtime_state.variable_pool
|
||||
datasource_type = variable_pool.get(["sys", SystemVariableKey.DATASOURCE_TYPE.value])
|
||||
if not datasource_type:
|
||||
@ -109,11 +109,7 @@ class DatasourceNode(Node):
|
||||
|
||||
# get parameters
|
||||
datasource_parameters = datasource_runtime.entity.parameters
|
||||
parameters = self._generate_parameters(
|
||||
datasource_parameters=datasource_parameters,
|
||||
variable_pool=variable_pool,
|
||||
node_data=self._node_data,
|
||||
)
|
||||
|
||||
parameters_for_log = self._generate_parameters(
|
||||
datasource_parameters=datasource_parameters,
|
||||
variable_pool=variable_pool,
|
||||
|
||||
@ -848,7 +848,7 @@ class DatasourceProviderService:
|
||||
else None,
|
||||
}
|
||||
)
|
||||
return datasource_credentials
|
||||
return datasource_credentials
|
||||
|
||||
def get_real_datasource_credentials(self, tenant_id: str, provider: str, plugin_id: str) -> list[dict]:
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user