From e63441b1e4139007a244a8f419cda73368b11ec7 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 3 Jul 2024 10:15:47 +0800 Subject: refactor: improve function calling (#680) --- src/function.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/function.rs') diff --git a/src/function.rs b/src/function.rs index a8c193a..fcb4c93 100644 --- a/src/function.rs +++ b/src/function.rs @@ -222,9 +222,9 @@ impl ToolCall { let output = if is_dangerously { if *IS_STDOUT_TERMINAL { - println!("{prompt}"); + println!("{}", dimmed_text(&prompt)); let answer = Text::new("[1] Run, [2] Run & Retrieve, [3] Skip:") - .with_default("2") + .with_default("1") .with_validator(|input: &str| match matches!(input, "1" | "2" | "3") { true => Ok(Validation::Valid), false => Ok(Validation::Invalid( -- cgit v1.2.3