fix: skip serializing if empty and remove log

This commit is contained in:
drbh 2024-02-20 15:49:39 +00:00
parent e0c9441a86
commit dc049e8a7b
2 changed files with 1 additions and 2 deletions

View File

@ -559,7 +559,7 @@ pub(crate) struct Message {
pub role: String, pub role: String,
#[schema(example = "My name is David and I")] #[schema(example = "My name is David and I")]
pub content: String, pub content: String,
#[serde(default)] #[serde(default, skip_serializing_if = "Option::is_none")]
#[schema(example = "\"David\"")] #[schema(example = "\"David\"")]
pub name: Option<String>, pub name: Option<String>,
} }

View File

@ -594,7 +594,6 @@ async fn chat_completions(
)); ));
} }
}; };
tracing::debug!("Templated input: {}", inputs);
// build the request passing some parameters // build the request passing some parameters
let generate_request = GenerateRequest { let generate_request = GenerateRequest {