Skip to content

Commit

Permalink
refactor: no function_calling=false if functions.json is empty (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Aug 30, 2024
1 parent d8d52b6 commit 00376b9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit 00376b9

Please sign in to comment.