mirror of
https://github.com/sigoden/aichat
synced 2024-11-08 13:10:28 +00:00
refactor: enable function_calling by default (#656)
This commit is contained in:
parent
5985551aba
commit
f60df03997
@ -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…
Reference in New Issue
Block a user