From 861529374726609a56f6b8af1145a0df5c924dcc Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 11 Jun 2024 14:01:45 +0800 Subject: feat: add config `dangerously_functions` (#582) --- config.example.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config.example.yaml') diff --git a/config.example.yaml b/config.example.yaml index fb5bcf2..6708243 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -18,6 +18,11 @@ buffer_editor: null # Controls the function calling feature. For setup instructions, visit https://github.com/sigoden/llm-functions function_calling: false +# Regex for seletecting dangerous functions. +# User confirmation is required when executing these functions. +# e.g. 'execute_command|execute_js_code' 'execute_.*' +dangerously_functions: null + # Specifies the embedding model to use embedding_model: null @@ -253,4 +258,5 @@ bots: - name: todo-sh model: null temperature: null - top_p: null \ No newline at end of file + top_p: null + dangerously_functions: null \ No newline at end of file -- cgit v1.2.3