Merge pull request #591 from paul-gauthier/restore-chat-history

Restore prior chat history on launch
This commit is contained in:
paul-gauthier 2024-05-11 07:49:43 -07:00 committed by GitHub
commit 45b2ba8a10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 68 additions and 29 deletions

View file

@ -151,6 +151,12 @@ def get_parser(default_config_files, git_root):
default=1024,
help="Max number of tokens to use for repo map, use 0 to disable (default: 1024)",
)
group.add_argument(
"--max-chat-history-tokens",
type=int,
default=None,
help="Maximum number of tokens to use for chat history. If not specified, uses the model's max_chat_history_tokens.",
)
default_env_file = os.path.join(git_root, ".env") if git_root else ".env"
group.add_argument(
"--env-file",