feature: 新增API调用日志统计,首字,总耗时,token消耗等

This commit is contained in:
xiamuceer
2026-03-18 12:35:13 +08:00
parent 4e3fb6766e
commit a6e6df5073
9 changed files with 491 additions and 69 deletions
+2 -2
View File
@@ -144,8 +144,8 @@ def _configure_third_party_loggers():
logging.getLogger('openai').setLevel(logging.WARNING)
logging.getLogger('anthropic').setLevel(logging.WARNING)
# 应用模块 - 可根据需要调整
logging.getLogger('app.services.ai_service').setLevel(logging.WARNING)
# 应用模块 - AI 统计日志需要保留 INFO 级别输出
logging.getLogger('app.services.ai_service').setLevel(logging.INFO)
logging.getLogger('app.api.wizard').setLevel(logging.WARNING)