mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
Merge remote-tracking branch 'origin/aether-rust-pioneer' into aether-rust-pioneer
# Conflicts: # crates/aether-data-contracts/src/repository/usage/mod.rs # crates/aether-data/src/repository/global_models/postgres.rs # crates/aether-data/src/repository/usage/postgres/mod.rs
This commit is contained in:
@@ -251,6 +251,16 @@ impl AppState {
|
||||
.map_err(|err| GatewayError::Internal(err.to_string()))
|
||||
}
|
||||
|
||||
pub(crate) async fn summarize_usage_provider_performance(
|
||||
&self,
|
||||
query: &usage::UsageProviderPerformanceQuery,
|
||||
) -> Result<usage::StoredUsageProviderPerformance, GatewayError> {
|
||||
self.data
|
||||
.summarize_usage_provider_performance(query)
|
||||
.await
|
||||
.map_err(|err| GatewayError::Internal(err.to_string()))
|
||||
}
|
||||
|
||||
pub(crate) async fn summarize_usage_cost_savings(
|
||||
&self,
|
||||
query: &usage::UsageCostSavingsSummaryQuery,
|
||||
|
||||
Reference in New Issue
Block a user