Files
dify/api/services/plugin/plugin_service.py
-LAN- aec71081bd feat(plugin): cache plugin model providers by tenant
Move PluginService into core.plugin and make it own tenant-scoped plugin model provider cache reads, writes, and invalidation.

Inject PluginService into PluginModelRuntime and remove the request-scoped provider cache so install, uninstall, and upgrade flows share the same cache owner.
2026-05-20 18:13:00 +08:00

17 lines
513 B
Python

"""Compatibility import for the core plugin service.
PluginService lives in ``core.plugin`` because provider discovery, plugin
lifecycle changes, and cache ownership are core plugin concerns. Keep this
module as an alias so existing imports and test patch paths continue to target
the same module object.
"""
from __future__ import annotations
import sys
from core.plugin import plugin_service as _plugin_service
from core.plugin.plugin_service import * # noqa: F403
sys.modules[__name__] = _plugin_service