fix: Improve prompt caching and repo map refresh logic

This commit is contained in:
Paul Gauthier 2024-08-19 15:36:13 -07:00 committed by Paul Gauthier (aider)
parent f8b80548fd
commit 34dc7cc37d
5 changed files with 14 additions and 7 deletions

View file

@ -205,13 +205,13 @@ def get_parser(default_config_files, git_root):
"--map-refresh",
choices=["auto", "always", "files", "manual"],
default="auto",
help="Control when the repo map is refreshed (default: auto)",
help="Control how often 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)",
help="Enable caching of prompts (default: False)",
)
group.add_argument(
"--max-chat-history-tokens",