feat: Implement usage statistics tracking with backend integration and route setup

This commit is contained in:
Will Miao
2025-04-22 08:56:34 +08:00
parent b395d3f487
commit b12079e0f6
5 changed files with 363 additions and 4 deletions

View File

@@ -1,12 +1,14 @@
"""Constants used by the metadata collector"""
# Individual category constants
# Metadata collection constants
# Metadata categories
MODELS = "models"
PROMPTS = "prompts"
SAMPLING = "sampling"
LORAS = "loras"
SIZE = "size"
IMAGES = "images" # Added new category for image results
IMAGES = "images"
# Collection of categories for iteration
METADATA_CATEGORIES = [MODELS, PROMPTS, SAMPLING, LORAS, SIZE, IMAGES] # Added IMAGES to categories
# Complete list of categories to track
METADATA_CATEGORIES = [MODELS, PROMPTS, SAMPLING, LORAS, SIZE, IMAGES]