From caa179a1d3fec3795df40f3b2dcd1709c12dd474 Mon Sep 17 00:00:00 2001 From: moonpanda Date: Thu, 17 Apr 2025 15:25:31 +0800 Subject: [PATCH] If the DSL version is less than 0.1.5, it causes errors in an intranet environment. (#18273) Co-authored-by: warlocgao --- api/services/plugin/dependencies_analysis.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/services/plugin/dependencies_analysis.py b/api/services/plugin/dependencies_analysis.py index 778f05a0c..07e624b4e 100644 --- a/api/services/plugin/dependencies_analysis.py +++ b/api/services/plugin/dependencies_analysis.py @@ -1,3 +1,4 @@ +from configs import dify_config from core.helper import marketplace from core.plugin.entities.plugin import ModelProviderID, PluginDependency, PluginInstallationSource, ToolProviderID from core.plugin.manager.plugin import PluginInstallationManager @@ -111,6 +112,8 @@ class DependenciesAnalysisService: Generate the latest version of dependencies """ dependencies = list(set(dependencies)) + if not dify_config.MARKETPLACE_ENABLED: + return [] deps = marketplace.batch_fetch_plugin_manifests(dependencies) return [ PluginDependency(