diff --git a/products/01-llm-cost-router/src/auth/mod.rs b/products/01-llm-cost-router/src/auth/mod.rs index f71a7dc..6e2d7dd 100644 --- a/products/01-llm-cost-router/src/auth/mod.rs +++ b/products/01-llm-cost-router/src/auth/mod.rs @@ -34,12 +34,12 @@ pub trait AuthProvider: Send + Sync { /// Local auth — bcrypt passwords + HS256 JWT (self-hosted mode) pub struct LocalAuthProvider { pool: sqlx::PgPool, - jwt_secret: String, + _jwt_secret: String, redis: deadpool_redis::Pool, } impl LocalAuthProvider { - pub fn new(pool: sqlx::PgPool, jwt_secret: String, redis: deadpool_redis::Pool) -> Self { + pub fn new(pool: sqlx::PgPool, _jwt_secret: String, redis: deadpool_redis::Pool) -> Self { Self { pool, jwt_secret, redis } } } diff --git a/products/01-llm-cost-router/src/proxy/handler.rs b/products/01-llm-cost-router/src/proxy/handler.rs index e9628e6..0dab53a 100644 --- a/products/01-llm-cost-router/src/proxy/handler.rs +++ b/products/01-llm-cost-router/src/proxy/handler.rs @@ -43,7 +43,7 @@ async fn proxy_chat_completions( body: String, ) -> Result { // 1. Authenticate - let auth_ctx = state.auth.authenticate(&headers).await?; + let _auth_ctx = state.auth.authenticate(let auth_ctx = state.auth.authenticate(&headers).await?;headers).await?; // 2. Parse request let mut request: serde_json::Value = @@ -148,7 +148,7 @@ async fn proxy_embeddings( body: String, ) -> Result { // Embeddings don't need routing — pass through directly - let auth_ctx = state.auth.authenticate(&headers).await?; + let _auth_ctx = state.auth.authenticate(let auth_ctx = state.auth.authenticate(&headers).await?;headers).await?; let provider = "openai".to_string(); let upstream_url = state.config.provider_url(&provider); diff --git a/products/01-llm-cost-router/src/router/mod.rs b/products/01-llm-cost-router/src/router/mod.rs index e578861..f375eed 100644 --- a/products/01-llm-cost-router/src/router/mod.rs +++ b/products/01-llm-cost-router/src/router/mod.rs @@ -19,6 +19,7 @@ pub enum Complexity { } /// The Router Brain — evaluates request complexity and applies routing rules +#[derive(Default)] pub struct RouterBrain { // In V1, rules are loaded from config. Later: from DB per org. }