fix(frontend): align usage APIs with Rust routes

This commit is contained in:
MMEXA
2026-05-17 15:37:52 +00:00
parent a2f91b4108
commit 995be3781a
4 changed files with 365 additions and 12 deletions

View File

@@ -502,7 +502,9 @@ pub(super) async fn maybe_build_local_admin_usage_summary_response(
.summarize_usage_audits(&UsageAuditSummaryQuery {
created_from_unix_secs,
created_until_unix_secs,
..Default::default()
user_id: query_param_value(query, "user_id"),
provider_name: query_param_value(query, "provider"),
model: query_param_value(query, "model"),
})
.await?;
return Ok(Some(build_admin_usage_summary_stats_response_from_summary(