Add model settings for Claude 4.x family on Azure AI Foundry#5168
Open
Cyberfilo wants to merge 1 commit into
Open
Add model settings for Claude 4.x family on Azure AI Foundry#5168Cyberfilo wants to merge 1 commit into
Cyberfilo wants to merge 1 commit into
Conversation
Litellm's pricing JSON tracks the Anthropic Claude 4.x family on Azure AI Foundry (azure_ai/claude-opus-4-7, azure_ai/claude-opus-4-6, azure_ai/claude-sonnet-4-6, azure_ai/claude-haiku-4-5) but Aider was missing the project-side settings entirely. Without explicit settings, users hitting these models via Azure AI Foundry got the wrong edit grammar and no cache-control wiring. Adds four settings entries mirroring the corresponding native Anthropic / OpenRouter / Vertex AI Claude entries: - edit_format: diff - weak_model_name routes to azure_ai/claude-haiku-4-5 - cache_control enabled - max_tokens 128000 for Opus, 64000 for Sonnet/Haiku - accepts_settings: ["thinking_tokens"] where the native variant has it (Opus 4.6, Sonnet 4.6, Haiku 4.5; Opus 4.7 uses use_temperature: false to match the native pattern instead) Also adds a HISTORY.md entry under the main branch section.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds four entries to `aider/resources/model-settings.yml` for the Anthropic Claude 4.x family on Azure AI Foundry (`azure_ai/` provider — distinct from the Azure OpenAI `azure/` provider):
These models already have pricing/context-window metadata in litellm's `model_prices_and_context_window.json` (the upstream Aider pulls from at `ModelInfoManager.MODEL_INFO_URL`), but were missing the project-side settings. Without them, users routing Claude through Azure AI Foundry got the wrong edit grammar and no `cache_control` wiring.
Settings shape
Mirrors the existing native Anthropic / Vertex AI / OpenRouter Claude entries:
Test plan