|
|
|
|
|
|
|
|
|
|
|
from configs import dify_config |
|
|
from core.helper import marketplace |
|
|
from core.helper import marketplace |
|
|
from core.plugin.entities.plugin import ModelProviderID, PluginDependency, PluginInstallationSource, ToolProviderID |
|
|
from core.plugin.entities.plugin import ModelProviderID, PluginDependency, PluginInstallationSource, ToolProviderID |
|
|
from core.plugin.manager.plugin import PluginInstallationManager |
|
|
from core.plugin.manager.plugin import PluginInstallationManager |
|
|
|
|
|
|
|
|
Generate the latest version of dependencies |
|
|
Generate the latest version of dependencies |
|
|
""" |
|
|
""" |
|
|
dependencies = list(set(dependencies)) |
|
|
dependencies = list(set(dependencies)) |
|
|
|
|
|
if not dify_config.MARKETPLACE_ENABLED: |
|
|
|
|
|
return [] |
|
|
deps = marketplace.batch_fetch_plugin_manifests(dependencies) |
|
|
deps = marketplace.batch_fetch_plugin_manifests(dependencies) |
|
|
return [ |
|
|
return [ |
|
|
PluginDependency( |
|
|
PluginDependency( |