Преглед на файлове

If the DSL version is less than 0.1.5, it causes errors in an intranet environment. (#18273)

Co-authored-by: warlocgao <warlocgao@tencent.com>
tags/1.3.0
moonpanda преди 6 месеца
родител
ревизия
caa179a1d3
No account linked to committer's email address
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3
    0
      api/services/plugin/dependencies_analysis.py

+ 3
- 0
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(

Loading…
Отказ
Запис