From 4005ced505b9551b0bb027eed2347d4e4728a81d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 24 Feb 2025 17:17:34 -0800 Subject: [PATCH] copy --- aider/website/docs/llms/anthropic.md | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/aider/website/docs/llms/anthropic.md b/aider/website/docs/llms/anthropic.md index 2a41b34e8..c19e45542 100644 --- a/aider/website/docs/llms/anthropic.md +++ b/aider/website/docs/llms/anthropic.md @@ -39,3 +39,32 @@ with more generous rate limits. You can use `aider --model ` to use any other Anthropic model. For example, if you want to use a specific version of Opus you could do `aider --model claude-3-opus-20240229`. + +## Thinking tokens + +Aider can work with Sonnet 3.7's new thinking tokens, but it currently requires manual configuration. +More streamlined support will be coming soon. + +For now, you need to add the following to your `.aider.model.settings.yml` +[model settings file](http://127.0.0.1:4000/docs/config/adv-model-settings.html#model-settings). +Adjust the `budget_tokens` value to change the target number of thinking tokens. + +```yaml +- name: anthropic/claude-3-7-sonnet-20250219 + edit_format: diff + weak_model_name: anthropic/claude-3-5-haiku-20241022 + use_repo_map: true + examples_as_sys_msg: true + use_temperature: false + extra_params: + extra_headers: + anthropic-beta: prompt-caching-2024-07-31,pdfs-2024-09-25,output-128k-2025-02-19 + max_tokens: 64000 + thinking: + type: enabled + budget_tokens: 32000 # Adjust this number + cache_control: true + editor_model_name: anthropic/claude-3-7-sonnet-20250219 + editor_edit_format: editor-diff +``` +