summaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-03 10:15:47 +0800
committerGitHub <noreply@github.com>2024-07-03 10:15:47 +0800
commite63441b1e4139007a244a8f419cda73368b11ec7 (patch)
tree338047033585b0302f14984eaf85c8c6f2622be6 /src/config/mod.rs
parent3de95f04d8ec682c811c079914e77d5ffb0db2d0 (diff)
downloadaichat-e63441b1e4139007a244a8f419cda73368b11ec7.tar.gz
refactor: improve function calling (#680)
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs4
1 files changed, 1 insertions, 3 deletions
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;
}