From 34a6d13fb6e492860e1340ab7a97cbd1bdeb9d4d Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 25 Jun 2024 18:47:11 +0800 Subject: refactor: compress session (#649) 1. no require compress_threshold >= 1000 2. no compressing in middle of function calling --- config.example.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.example.yaml') diff --git a/config.example.yaml b/config.example.yaml index ea1f879..43c3876 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -18,7 +18,7 @@ agent_prelude: null # Set a session to use when starting a agent. ( # ---- session ---- # Controls the persistence of the session, if null, asking the user save_session: null -# Compress session when token count reaches or exceeds this threshold (must be at least 1000) +# Compress session when token count reaches or exceeds this threshold compress_threshold: 4000 # Text prompt used for creating a concise summary of session message summarize_prompt: 'Summarize the discussion briefly in 200 words or less to use as a prompt for future context.' -- cgit v1.2.3