- Rename package directory and all references from sage_datamark to sage_datamart - Add 3 ETL cron dspy files (sync/aggregate/provider_cost) for scheduled data pipelines - Add 5 stat UI files (total_users/fail_calls/success_rate/avg_ttft/total_calls) - Register j2_ template functions in init.py for UI rendering - Move j2_avg_ttft SQL to dashboards.py for DRY - Clean unused imports (getConfig/DBPools/exception) - Update git remote to sage_datamart.git
7 lines
216 B
Plaintext
7 lines
216 B
Plaintext
# 模型性能统计 API
|
|
import json
|
|
env = request._run_ns
|
|
async with get_sor_context(env, 'sage_datamart') as sor:
|
|
rows = await env.api_model_perf(sor, params_kw)
|
|
return json.dumps(rows, ensure_ascii=False)
|