Skip to content

Commit 16ca82c

Browse files
committed
fix(provider-defaults): bump default Anthropic model to claude-sonnet-4-5-20250929
The previous default `claude-sonnet-4-20250514` returns 404 from the Anthropic API today, breaking every published example that says `provider: 'anthropic'` without an explicit `model:`. Bump default to `claude-sonnet-4-5-20250929` (verified working) for both `anthropic` and `claude-code-cli` providers, and update the matching spec assertion so it doesn't drift.
1 parent fe20396 commit 16ca82c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/api/runtime/provider-defaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const PROVIDER_DEFAULTS: Record<string, ProviderDefaults> = {
4242
cheap: 'gpt-4o-mini',
4343
},
4444
anthropic: {
45-
text: 'claude-sonnet-4-20250514',
45+
text: 'claude-sonnet-4-5-20250929',
4646
cheap: 'claude-haiku-4-5-20251001',
4747
},
4848
ollama: {
@@ -60,7 +60,7 @@ export const PROVIDER_DEFAULTS: Record<string, ProviderDefaults> = {
6060
cheap: 'gemini-2.0-flash',
6161
},
6262
'claude-code-cli': {
63-
text: 'claude-sonnet-4-20250514',
63+
text: 'claude-sonnet-4-5-20250929',
6464
cheap: 'claude-haiku-4-5-20251001',
6565
},
6666
'gemini-cli': {

src/core/llm/providers/tests/OpenAICompatProviders.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ describe('OpenAI-compatible provider wrappers', () => {
278278

279279
it('still has anthropic defaults', () => {
280280
expect(PROVIDER_DEFAULTS.anthropic).toBeDefined();
281-
expect(PROVIDER_DEFAULTS.anthropic.text).toBe('claude-sonnet-4-20250514');
281+
expect(PROVIDER_DEFAULTS.anthropic.text).toBe('claude-sonnet-4-5-20250929');
282282
expect(PROVIDER_DEFAULTS.anthropic.cheap).toBe('claude-haiku-4-5-20251001');
283283
});
284284
});

0 commit comments

Comments
 (0)