From ec0d913434ea47c18ddf462cc287d9d06de14c97 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Thu, 25 Apr 2024 14:59:26 +0200 Subject: [PATCH] Fmt + clippy. --- router/src/server.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/router/src/server.rs b/router/src/server.rs index 4487939a..03d184c3 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -1010,11 +1010,9 @@ async fn chat_completions( let tool_prompt = tool_prompt.unwrap_or_default(); let stop = stop.unwrap_or_default(); // enable greedy only when temperature is 0 - let (do_sample, temperature) = match temperature{ - Some(temperature) if temperature == 0.0 => { - (false, None) - } - other => (true, other) + let (do_sample, temperature) = match temperature { + Some(temperature) if temperature == 0.0 => (false, None), + other => (true, other), }; // extract tool grammar if present