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 /config.example.yaml | |
| 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 'config.example.yaml')
| -rw-r--r-- | config.example.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config.example.yaml b/config.example.yaml index e510734..69220f1 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -9,6 +9,13 @@ auto_copy: false # Automatically copy the last output to the cli keybindings: emacs # REPL keybindings. (emacs, vi) prelude: '' # Set a default role or session (role:<name>, session:<name>) +# Compress session if tokens exceed this value (valid when >=1000) +compress_threshold: 1000 +# The prompt for summarizing session messages +summarize_prompt: 'Summarize the discussion briefly in 200 words or less to use as a prompt for future context.' +# The prompt for the summary of the session +summary_prompt: 'This is a summary of the chat history as a recap: ' + # Custom REPL prompt, see https://github.com/sigoden/aichat/wiki/Custom-REPL-Prompt left_prompt: '{color.green}{?session {session}{?role /}}{role}{color.cyan}{?session )}{!session >}{color.reset} ' right_prompt: '{color.purple}{?session {?consume_tokens {consume_tokens}({consume_percent}%)}{!consume_tokens {consume_tokens}}}{color.reset}' |
