Skip to content

Commit

Permalink
core: add 'any' option to function_call (#8436)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Nov 5, 2024
1 parent e1060be commit da2da0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/blocks/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ impl Block for Chat {
match function_call.as_ref() {
None => (),
Some(s) => match s.as_str() {
"auto" | "none" => (),
"auto" | "none" | "any" => (),
s => {
functions.iter().find(|f| f.name == s).ok_or(anyhow!(
"Invalid `function_call` in configuration for chat block `{}`: \
function name `{}` not found in functions. Possible values are \
'auto', 'none' or the name of one of the functions.",
'auto', 'none', 'any' or the name of one of the functions.",
name,
s
))?;
Expand Down

0 comments on commit da2da0c

Please sign in to comment.