mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 08:28:03 +08:00
fix(app_asset_service): reduce maximum preview content size from 5MB to 1MB
This commit is contained in:
@ -36,7 +36,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class AppAssetService:
|
||||
MAX_PREVIEW_CONTENT_SIZE = 5 * 1024 * 1024 # 5MB
|
||||
MAX_PREVIEW_CONTENT_SIZE = 1 * 1024 * 1024 # 1MB
|
||||
|
||||
@staticmethod
|
||||
def get_or_create_assets(session: Session, app_model: App, account_id: str) -> AppAssets:
|
||||
|
||||
Reference in New Issue
Block a user