From b4a40e3fedb438570770a224b890ea24f6e660a9 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 18 May 2024 19:06:21 +0800 Subject: feat: support function calling (#514) * feat: support function calling * fix on Windows OS * implement multi-steps function calling * fix on Windows OS * add error for client not support function calling * refactor message data structure and make claude client supporting function calling * support reuse previous call results * improve error handling for function calling * use prefix `may_` as indicator for `execute` type fucntions --- config.example.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.example.yaml') diff --git a/config.example.yaml b/config.example.yaml index 3f4672d..5898475 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -15,6 +15,9 @@ prelude: null # Set a default role or session to start with ( # if unset fallback to $EDITOR and $VISUAL buffer_editor: null +# Controls the function calling feature. For setup instructions, visit https://github.com/sigoden/llm-functions. +function_calling: false + # Compress session when token count reaches or exceeds this threshold (must be at least 1000) compress_threshold: 1000 # Text prompt used for creating a concise summary of session message -- cgit v1.2.3