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/config/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/config') diff --git a/src/config/mod.rs b/src/config/mod.rs index 6725c93..375faba 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -532,9 +532,7 @@ impl Config { "function_calling" => { let value = value.parse().with_context(|| "Invalid value")?; if value && self.functions.is_empty() { - bail!( - "Cannot enable function_calling because there are no functions installed." - ) + bail!("Function calling cannot be enabled because no functions are installed.") } self.function_calling = value; } -- cgit v1.2.3