From 076db268549cd02a8236b03df51f6f9f5b38587b Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 19 Aug 2024 15:59:03 -0700 Subject: [PATCH] copy --- HISTORY.md | 1 + aider/website/HISTORY.md | 12 +++++++++++- aider/website/assets/sample.aider.conf.yml | 4 ++-- aider/website/assets/sample.env | 4 ++-- aider/website/docs/config/aider_conf.md | 4 ++-- aider/website/docs/config/dotenv.md | 4 ++-- aider/website/docs/config/options.md | 4 ++-- aider/website/docs/usage/commands.md | 2 +- 8 files changed, 23 insertions(+), 12 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 40d45a345..adb9286c3 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -14,6 +14,7 @@ - Bugfix: properly load `.aider.models.metadata.json` data. - Bugfix: Using `--msg /ask ...` caused an exception. - Bugfix: litellm tokenizer bug for images. +- Aider wrote 55% of the code in this release. ### Aider v0.50.1 diff --git a/aider/website/HISTORY.md b/aider/website/HISTORY.md index ca63982ef..4f426dae5 100644 --- a/aider/website/HISTORY.md +++ b/aider/website/HISTORY.md @@ -18,8 +18,18 @@ cog.out(text) ### main branch +- Prompt caching for Anthropic models with `--cache-prompts`. + - Caches the system prompt, repo map and `/read-only` files. +- Repo map recomputes less often in large/mono repos or when caching enabled. + - Use `--map-refresh ` to configure. +- Improved cost estimate logic for caching. - Improved editing performance on Jupyter Notebook `.ipynb` files. -- Work around litellm tokenizer bug for images. +- Show which config yaml file is loaded with `--verbose`. +- Bumped dependency versions. +- Bugfix: properly load `.aider.models.metadata.json` data. +- Bugfix: Using `--msg /ask ...` caused an exception. +- Bugfix: litellm tokenizer bug for images. +- Aider wrote 55% of the code in this release. ### Aider v0.50.1 diff --git a/aider/website/assets/sample.aider.conf.yml b/aider/website/assets/sample.aider.conf.yml index 98992d51f..bb10ae227 100644 --- a/aider/website/assets/sample.aider.conf.yml +++ b/aider/website/assets/sample.aider.conf.yml @@ -92,10 +92,10 @@ ## Max number of tokens to use for repo map, use 0 to disable (default: 1024) #map-tokens: -## Control when the repo map is refreshed (default: auto) +## Control how often the repo map is refreshed (default: auto) #map-refresh: auto -## Enable caching of prompts (forces map_refresh='files') (default: False) +## Enable caching of prompts (default: False) #cache-prompts: false ## Maximum number of tokens to use for chat history. If not specified, uses the model's max_chat_history_tokens. diff --git a/aider/website/assets/sample.env b/aider/website/assets/sample.env index 98d89f550..197595e30 100644 --- a/aider/website/assets/sample.env +++ b/aider/website/assets/sample.env @@ -96,10 +96,10 @@ ## Max number of tokens to use for repo map, use 0 to disable (default: 1024) #AIDER_MAP_TOKENS= -## Control when the repo map is refreshed (default: auto) +## Control how often the repo map is refreshed (default: auto) #AIDER_MAP_REFRESH=auto -## Enable caching of prompts (forces map_refresh='files') (default: False) +## Enable caching of prompts (default: False) #AIDER_CACHE_PROMPTS=false ## Maximum number of tokens to use for chat history. If not specified, uses the model's max_chat_history_tokens. diff --git a/aider/website/docs/config/aider_conf.md b/aider/website/docs/config/aider_conf.md index 66526fb50..3cd0a5251 100644 --- a/aider/website/docs/config/aider_conf.md +++ b/aider/website/docs/config/aider_conf.md @@ -131,10 +131,10 @@ cog.outl("```") ## Max number of tokens to use for repo map, use 0 to disable (default: 1024) #map-tokens: -## Control when the repo map is refreshed (default: auto) +## Control how often the repo map is refreshed (default: auto) #map-refresh: auto -## Enable caching of prompts (forces map_refresh='files') (default: False) +## Enable caching of prompts (default: False) #cache-prompts: false ## Maximum number of tokens to use for chat history. If not specified, uses the model's max_chat_history_tokens. diff --git a/aider/website/docs/config/dotenv.md b/aider/website/docs/config/dotenv.md index db7edead2..916e9f435 100644 --- a/aider/website/docs/config/dotenv.md +++ b/aider/website/docs/config/dotenv.md @@ -138,10 +138,10 @@ cog.outl("```") ## Max number of tokens to use for repo map, use 0 to disable (default: 1024) #AIDER_MAP_TOKENS= -## Control when the repo map is refreshed (default: auto) +## Control how often the repo map is refreshed (default: auto) #AIDER_MAP_REFRESH=auto -## Enable caching of prompts (forces map_refresh='files') (default: False) +## Enable caching of prompts (default: False) #AIDER_CACHE_PROMPTS=false ## Maximum number of tokens to use for chat history. If not specified, uses the model's max_chat_history_tokens. diff --git a/aider/website/docs/config/options.md b/aider/website/docs/config/options.md index 4ca48e5f9..b6ec80131 100644 --- a/aider/website/docs/config/options.md +++ b/aider/website/docs/config/options.md @@ -192,12 +192,12 @@ Max number of tokens to use for repo map, use 0 to disable (default: 1024) Environment variable: `AIDER_MAP_TOKENS` ### `--map-refresh VALUE` -Control when the repo map is refreshed (default: auto) +Control how often the repo map is refreshed (default: auto) Default: auto Environment variable: `AIDER_MAP_REFRESH` ### `--cache-prompts` -Enable caching of prompts (forces map_refresh='files') (default: False) +Enable caching of prompts (default: False) Default: False Environment variable: `AIDER_CACHE_PROMPTS` Aliases: diff --git a/aider/website/docs/usage/commands.md b/aider/website/docs/usage/commands.md index ff99d5cf7..2046e86ee 100644 --- a/aider/website/docs/usage/commands.md +++ b/aider/website/docs/usage/commands.md @@ -33,7 +33,7 @@ cog.out(get_help_md()) | **/model** | Switch to a new LLM | | **/models** | Search the list of available models | | **/quit** | Exit the application | -| **/read** | Add a file to the chat that is for reference, not to be edited | +| **/read-only** | Add a file to the chat that is for reference, not to be edited | | **/run** | Run a shell command and optionally add the output to the chat (alias: !) | | **/test** | Run a shell command and add the output to the chat on non-zero exit code | | **/tokens** | Report on the number of tokens used by the current chat context |