From b2facc752659a6b4d7dd25ba0bdd3e0998c67adb Mon Sep 17 00:00:00 2001 From: Argenis Date: Mon, 16 Feb 2026 20:08:00 -0500 Subject: [PATCH] fix(cli): respect config default_temperature Fixes #452 - CLI now respects config.default_temperature Co-Authored-By: Claude Opus 4.6 --- src/main.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index b12bc06..fb16c76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -136,9 +136,9 @@ enum Commands { #[arg(long)] model: Option, - /// Temperature (0.0 - 2.0) - #[arg(short, long, default_value = "0.7")] - temperature: f64, + /// Temperature (0.0 - 2.0); defaults to config default_temperature + #[arg(short, long)] + temperature: Option, /// Attach a peripheral (board:path, e.g. nucleo-f401re:/dev/ttyACM0) #[arg(long)] @@ -400,7 +400,10 @@ async fn main() -> Result<()> { model, temperature, peripheral, - } => agent::run(config, message, provider, model, temperature, peripheral).await, + } => { + let temp = temperature.unwrap_or(config.default_temperature); + agent::run(config, message, provider, model, temp, peripheral).await + } Commands::Gateway { port, host } => { if port == 0 {