diff --git a/router/src/lib.rs b/router/src/lib.rs index d4bc66ae..6b8cd5ed 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -559,7 +559,7 @@ pub(crate) struct Message { pub role: String, #[schema(example = "My name is David and I")] pub content: String, - #[serde(default)] + #[serde(default, skip_serializing_if = "Option::is_none")] #[schema(example = "\"David\"")] pub name: Option, } diff --git a/router/src/server.rs b/router/src/server.rs index 82cae6c5..140fb014 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -594,7 +594,6 @@ async fn chat_completions( )); } }; - tracing::debug!("Templated input: {}", inputs); // build the request passing some parameters let generate_request = GenerateRequest {