refactor: enable function_calling by default (#656)

This commit is contained in:
sigoden 2024-06-26 23:04:06 +08:00 committed by GitHub
parent 5985551aba
commit f60df03997
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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_.*'

View File

@ -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,
})
}