summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorPatrick Jackson <patrick@jackson.dev>2024-03-26 17:00:28 -0600
committerGitHub <noreply@github.com>2024-03-27 07:00:28 +0800
commit582f56e915a7c88eb0372496e298c9944f5832ae (patch)
treec95e19607288f9c740b1d76b477cede2c88a0466 /config.example.yaml
parent7f05dc1a4af868b64906666c65020838cf2aa985 (diff)
downloadaichat-582f56e915a7c88eb0372496e298c9944f5832ae.tar.gz
feat: add `save_session` config item and `--save-session` cli option (#370)
* fix: sessions should save when exiting * feat: improve save sessions * feat: do not allow saving the temp session name * feat: allow creating a session without interactive use * feat: add `save_session` config and `--save-session` option --------- Co-authored-by: sigoden <sigoden@gmail.com>
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.example.yaml b/config.example.yaml
index 2e6efed..de51d82 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -8,6 +8,7 @@ wrap_code: false # Whether wrap code block
auto_copy: false # Automatically copy the last output to the clipboard
keybindings: emacs # REPL keybindings. (emacs, vi)
prelude: '' # Set a default role or session (role:<name>, session:<name>)
+save_session: false # Whether to save the session automatically
# Compress session if tokens exceed this value (valid when >=1000)
compress_threshold: 1000