From 488744fbb22708106c87c3768bc8aed2cc6146dc Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Wed, 17 Dec 2025 16:52:53 -0800 Subject: [PATCH] fix build --- crates/brightstaff/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/brightstaff/src/main.rs b/crates/brightstaff/src/main.rs index aab77e72..9a2b6706 100644 --- a/crates/brightstaff/src/main.rs +++ b/crates/brightstaff/src/main.rs @@ -176,7 +176,7 @@ async fn main() -> Result<(), Box> { let state_storage = state_storage.clone(); async move { - + let path = req.uri().path(); // Check if path starts with /agents if path.starts_with("/agents") { // Check if it matches one of the agent API paths @@ -198,11 +198,11 @@ async fn main() -> Result<(), Box> { .await; } } - match (req.method(), req.uri().path()) { + match (req.method(), path) { (&Method::POST, CHAT_COMPLETIONS_PATH | MESSAGES_PATH | OPENAI_RESPONSES_API_PATH) => { let fully_qualified_url = - format!("{}{}", llm_provider_url, req.uri().path()); - llm_chat(req, router_service, fully_qualified_url, model_aliases, llm_providers, trace_collector) + format!("{}{}", llm_provider_url, path); + llm_chat(req, router_service, fully_qualified_url, model_aliases, llm_providers, trace_collector, state_storage) .with_context(parent_cx) .await }