refactor: enable function_calling by default (#656)

pull/659/head
sigoden 3 months ago committed by GitHub
parent 5985551aba
commit f60df03997
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

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

Loading…
Cancel
Save