feat(model and app statistic): 1. Optimize the model list; 2. Increase the model combination; 3. Add a model square; 4. Add application management statistics

This commit is contained in:
Timebomb2018
2026-01-28 11:04:46 +08:00
parent 2862db3534
commit e5e914903c
2 changed files with 6 additions and 2 deletions

View File

@@ -4,6 +4,10 @@ import datetime
import uuid
from app.models.models_model import ModelProvider, ModelType
from app.core.logging_config import get_business_logger
schema_logger = get_business_logger()
@@ -164,7 +168,7 @@ class ModelApiKey(ModelApiKeyBase):
and getattr(mc, 'name', None) == self.model_name))
]
except Exception as e:
print(f"提取 model_config_ids 失败:{e}")
schema_logger.warning(f"提取 model_config_ids 失败:{e}")
self.model_config_ids = []
model_config = ConfigDict(