Skip to content

Commit

Permalink
refactor: enable function_calling by default (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Jun 26, 2024
1 parent 5985551 commit f60df03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ summary_prompt: 'This is a summary of the chat history as a recap: '

# ---- function-calling & agent ----
# Controls the function calling feature. For setup instructions, visit https://github.com/sigoden/llm-functions
function_calling: false
function_calling: true
# Regex for seletecting dangerous functions
# User confirmation is required when executing these functions
# e.g. 'execute_command|execute_js_code' 'execute_.*'
Expand Down
4 changes: 2 additions & 2 deletions src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ impl Functions {
vec![]
};

let func_names = declarations.iter().map(|v| v.name.clone()).collect();
let names = declarations.iter().map(|v| v.name.clone()).collect();

Ok(Self {
names: func_names,
names,
declarations,
})
}
Expand Down

0 comments on commit f60df03

Please sign in to comment.