Fix: add missing async_trait on AuthenticatedUser extractor, type annotation on analytics router, import ObservabilityManager
Some checks failed
BotServer CI / build (push) Has been cancelled
Some checks failed
BotServer CI / build (push) Has been cancelled
This commit is contained in:
parent
7326413ea8
commit
5ca5e98f8b
1 changed files with 3 additions and 1 deletions
|
|
@ -18,6 +18,8 @@ use std::fmt::Write as FmtWrite;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
#[cfg(feature = "llm")]
|
#[cfg(feature = "llm")]
|
||||||
use tokio::sync::RwLock;
|
use tokio::sync::RwLock;
|
||||||
|
#[cfg(feature = "llm")]
|
||||||
|
use crate::llm::observability::{ObservabilityManager, ObservabilityConfig, QuickStats};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, Queryable)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Queryable)]
|
||||||
pub struct AnalyticsStats {
|
pub struct AnalyticsStats {
|
||||||
|
|
@ -135,7 +137,7 @@ pub fn configure_analytics_routes() -> Router<Arc<AppState>> {
|
||||||
.route(ApiUrls::ANALYTICS_CHAT, post(handle_analytics_chat));
|
.route(ApiUrls::ANALYTICS_CHAT, post(handle_analytics_chat));
|
||||||
|
|
||||||
#[cfg(feature = "llm")]
|
#[cfg(feature = "llm")]
|
||||||
let router = router
|
let router: Router<Arc<AppState>> = router
|
||||||
.route(ApiUrls::ANALYTICS_LLM_STATS, get(handle_llm_stats))
|
.route(ApiUrls::ANALYTICS_LLM_STATS, get(handle_llm_stats))
|
||||||
.route(ApiUrls::ANALYTICS_BUDGET_STATUS, get(handle_budget_status));
|
.route(ApiUrls::ANALYTICS_BUDGET_STATUS, get(handle_budget_status));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue