diff options
| author | sigoden <sigoden@gmail.com> | 2024-03-04 11:08:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 11:08:59 +0800 |
| commit | 3f693ea060d96b0adc397768c3b2dd47708a20ce (patch) | |
| tree | d805b526aa7423d839a1c52907057e13efa0f38c /README.md | |
| parent | 9e15a3409e7080f0cf06b6dcfc0077142e3e8972 (diff) | |
| download | aichat-3f693ea060d96b0adc397768c3b2dd47708a20ce.tar.gz | |
feat: compress session automaticlly (#333)
* feat: compress session automaticlly
* non-block
* update field description
* set compress_threshold
* update session::clear_messages
* able to override session compress_threshold
* enable compress_threshold by default
* make session compress_threshold optional
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -87,6 +87,7 @@ wrap_code: false # Whether wrap code block auto_copy: false # Automatically copy the last output to the clipboard keybindings: emacs # REPL keybindings. values: emacs, vi prelude: '' # Set a default role or session (role:<name>, session:<name>) +compress_threshold: 1000 # Compress session if tokens exceed this value (valid when >=1000) clients: - type: openai @@ -296,6 +297,7 @@ Usage: .file <file>... [-- text...] > .set highlight false > .set save false > .set auto_copy true +> .set compress_threshold 1000 ``` ## Command |
