diff --git a/products/01-llm-cost-router/Cargo.toml b/products/01-llm-cost-router/Cargo.toml index 40b8066..5a96d2c 100644 --- a/products/01-llm-cost-router/Cargo.toml +++ b/products/01-llm-cost-router/Cargo.toml @@ -18,6 +18,7 @@ name = "dd0c-worker" path = "src/worker/main.rs" [dependencies] +hex = "0.4.3" # Web framework axum = { version = "0.7", features = ["ws", "macros"] } tokio = { version = "1", features = ["full"] } diff --git a/products/01-llm-cost-router/src/api/handler.rs b/products/01-llm-cost-router/src/api/handler.rs index ca296d4..fef96f2 100644 --- a/products/01-llm-cost-router/src/api/handler.rs +++ b/products/01-llm-cost-router/src/api/handler.rs @@ -9,8 +9,8 @@ use serde::{Deserialize, Serialize}; use std::sync::Arc; use uuid::Uuid; -use crate::auth::{AuthContext, AuthError, AuthProvider, Role}; -use crate::config::AppConfig; +use dd0c_route::auth::{AuthContext, AuthError, AuthProvider, Role}; +use dd0c_route::config::AppConfig; pub struct ApiState { pub auth: Arc, diff --git a/products/01-llm-cost-router/src/proxy/handler.rs b/products/01-llm-cost-router/src/proxy/handler.rs index 9842e3e..3a59178 100644 --- a/products/01-llm-cost-router/src/proxy/handler.rs +++ b/products/01-llm-cost-router/src/proxy/handler.rs @@ -13,10 +13,10 @@ use tracing::{info, warn}; use super::middleware; -use crate::auth::AuthProvider; -use crate::config::AppConfig; -use crate::data::{EventQueue, TelemetryEvent}; -use crate::router::RouterBrain; +use dd0c_route::auth::AuthProvider; +use dd0c_route::config::AppConfig; +use dd0c_route::data::{EventQueue, TelemetryEvent}; +use dd0c_route::router::RouterBrain; pub struct ProxyState { pub auth: Arc, @@ -181,8 +181,8 @@ pub enum ProxyError { UpstreamError(String), } -impl From for ProxyError { - fn from(e: crate::auth::AuthError) -> Self { +impl From for ProxyError { + fn from(e: dd0c_route::auth::AuthError) -> Self { ProxyError::AuthError(e.to_string()) } }