mirror of
https://github.com/langgenius/dify.git
synced 2026-02-11 19:00:44 -05:00
- Introduced CachedPresignStorage to cache presigned download URLs, reducing repeated API calls. - Updated AppAssetService to utilize CachedPresignStorage for improved performance in asset download URL generation. - Refactored asset builders and packagers to support the new storage mechanism. - Removed unused AppAssetsAttrsInitializer to streamline initialization processes. - Added unit tests for CachedPresignStorage to ensure functionality and reliability.
9 lines
254 B
Python
9 lines
254 B
Python
from core.app.entities.app_asset_entities import AppAssetFileTree
|
|
from libs.attr_map import AttrKey
|
|
|
|
|
|
class AppAssetsAttrs:
|
|
# Skill artifact set
|
|
FILE_TREE = AttrKey("file_tree", AppAssetFileTree)
|
|
APP_ASSETS_ID = AttrKey("app_assets_id", str)
|