diff options
| author | sigoden <sigoden@gmail.com> | 2024-08-30 20:05:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-30 20:05:19 +0800 |
| commit | 00376b98e0dcda80774915f4f8d704f60320d6f6 (patch) | |
| tree | 53cdecfd2dbfbdcaadbc5c8bdf6f0d2e502a02db /src | |
| parent | d8d52b60d6dba47a0c318e68172e2d28e5351385 (diff) | |
| download | aichat-00376b98e0dcda80774915f4f8d704f60320d6f6.tar.gz | |
refactor: no function_calling=false if functions.json is empty (#812)
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/mod.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index d293c44..1a0b1d6 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -1808,9 +1808,6 @@ impl Config { fn load_functions(&mut self) -> Result<()> { self.functions = Functions::init(&Self::functions_file()?)?; - if self.functions.is_empty() { - self.function_calling = false; - } Ok(()) } |
