Merge pull request #412 from ProtectCookies/main

This commit is contained in:
leokun committed 2026-09-04 15:45:51 +08:00
commit 82f6add55d
16 files changed
+369 -52

No files matched your search

+7 -1
View File
@@ -16,6 +16,7 @@ pub struct OverviewRange {
start_ms: Option<i64>,
end_ms: Option<i64>,
model_hashes: Option<String>,
bucket_ms: Option<i64>,
}
pub async fn get(
@@ -24,7 +25,12 @@ pub async fn get(
) -> Result<Json<Overview>> {
Ok(Json(
service
.overview(range.start_ms, range.end_ms, range.model_hashes.as_deref())
.overview(
range.start_ms,
range.end_ms,
range.model_hashes.as_deref(),
range.bucket_ms,
)
.await?,
))
}
+4 -1
View File
@@ -329,8 +329,11 @@ impl ControlService {
start_ms: Option<i64>,
end_ms: Option<i64>,
model_hashes: Option<&str>,
bucket_ms: Option<i64>,
) -> Result<Overview> {
self.store.overview(start_ms, end_ms, model_hashes).await
self.store
.overview(start_ms, end_ms, model_hashes, bucket_ms)
.await
}
pub async fn create_models(&self, models: &[ModelConfigInput]) -> Result<Vec<ModelConfig>> {