diff --git a/crates/brightstaff/src/handlers/agent_chat_completions.rs b/crates/brightstaff/src/handlers/agent_chat_completions.rs index b5bcf346..46e9ead1 100644 --- a/crates/brightstaff/src/handlers/agent_chat_completions.rs +++ b/crates/brightstaff/src/handlers/agent_chat_completions.rs @@ -158,7 +158,7 @@ async fn handle_agent_chat( .unwrap() .to_string(); - let (request_headers, request_id) = { + let request_headers = { let mut headers = request.headers().clone(); headers.remove(common::consts::ENVOY_ORIGINAL_PATH_HEADER); @@ -173,17 +173,10 @@ async fn handle_agent_chat( hyper::header::HeaderValue::from_str(&request_id).unwrap(), ); } - let request_id = headers - .get(common::consts::REQUEST_ID_HEADER) - .and_then(|v| v.to_str().ok()) - .unwrap() - .to_string(); - (headers, request_id) + headers }; - info!("Processing request with Request ID: {}", request_id); - let chat_request_bytes = request.collect().await?.to_bytes(); debug!( diff --git a/crates/brightstaff/src/handlers/pipeline_processor.rs b/crates/brightstaff/src/handlers/pipeline_processor.rs index ecf0a58d..8b9bf21a 100644 --- a/crates/brightstaff/src/handlers/pipeline_processor.rs +++ b/crates/brightstaff/src/handlers/pipeline_processor.rs @@ -668,8 +668,6 @@ impl PipelineProcessor { ) .expect("Failed to build headers for initialization"); - info!("Initialize request headers: {:?}", headers); - let response = self .send_mcp_request(&initialize_request, &headers, agent_id) .await