feat: Add --cache-prompts bool option, default false

This commit is contained in:
Paul Gauthier (aider) 2024-08-17 06:46:18 -07:00
parent f9ed868076
commit 8326bd04dd
2 changed files with 10 additions and 0 deletions

View file

@ -207,6 +207,12 @@ def get_parser(default_config_files, git_root):
default="auto",
help="Control when the repo map is refreshed (default: auto)",
)
group.add_argument(
"--cache-prompts",
action=argparse.BooleanOptionalAction,
default=False,
help="Enable caching of prompts (forces map_refresh='files') (default: False)",
)
group.add_argument(
"--max-chat-history-tokens",
type=int,