From 88195c4323b05895e32b67579e164698f1700574 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 26 Aug 2024 20:12:56 -0700 Subject: [PATCH] fix: Update prompt cache keepalive configuration --- HISTORY.md | 2 +- aider/args.py | 4 ++-- aider/main.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index a8a38c728..462320b85 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,7 +3,7 @@ ### main branch -- Prompt cache warming, via `--cache-warming-pings`. +- Prompt cache keepalives, via `--cache-keepalive-pings`. - You can now bulk accept/reject a series of add url and run shell confirmations. - Improved matching of filenames from S/R blocks with files in chat. - Stronger prompting for Sonnet to make edits in code chat mode. diff --git a/aider/args.py b/aider/args.py index 53b2dffb4..b2d3aeadc 100644 --- a/aider/args.py +++ b/aider/args.py @@ -214,10 +214,10 @@ def get_parser(default_config_files, git_root): help="Enable caching of prompts (default: False)", ) group.add_argument( - "--cache-warming-pings", + "--cache-keepalive-pings", type=int, default=0, - help="Number of times to ping every 5min to keep prompt cache warm (default: 0)", + help="Number of times to ping at 5min intervals to keep prompt cache warm (default: 0)", ) group.add_argument( "--map-multiplier-no-files", diff --git a/aider/main.py b/aider/main.py index e33e68929..2310de715 100644 --- a/aider/main.py +++ b/aider/main.py @@ -543,7 +543,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F map_refresh=args.map_refresh, cache_prompts=args.cache_prompts, map_mul_no_files=args.map_multiplier_no_files, - num_cache_warming_pings=args.cache_warming_pings, + num_cache_warming_pings=args.cache_keepalive_pings, ) except ValueError as err: io.tool_error(str(err))