summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-05-30 10:19:29 +0800
committerGitHub <noreply@github.com>2024-05-30 10:19:29 +0800
commitfa4bf14e02b1e6361b38014fe6a986738cf06837 (patch)
treef511adfaa457a1829c4064d44b966cd271e993ee
parentc0f4d2d71251b883519e45d9bf2e0cafa52e552d (diff)
downloadaichat-fa4bf14e02b1e6361b38014fe6a986738cf06837.tar.gz
refactor: adjust default `compress_threshold` to 4000 (#552)
-rw-r--r--config.example.yaml2
-rw-r--r--src/config/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.example.yaml b/config.example.yaml
index 8843a29..7362041 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -19,7 +19,7 @@ buffer_editor: null
function_calling: false
# Compress session when token count reaches or exceeds this threshold (must be at least 1000)
-compress_threshold: 1000
+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.'
# Text prompt used for including the summary of the entire session
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 6df1cf3..7d4c853 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -112,7 +112,7 @@ impl Default for Config {
prelude: None,
buffer_editor: None,
function_calling: false,
- compress_threshold: 2000,
+ compress_threshold: 4000,
summarize_prompt: None,
summary_prompt: None,
left_prompt: None,