Skip to content

fix-updates Anthropic model from retired snapshot to claude-sonnet-4-6 ☝🏾#892

Merged
NyranMoodie merged 2 commits into
colorstackorg:mainfrom
jnanda97:fix-resume-review-bug
Jul 6, 2026
Merged

fix-updates Anthropic model from retired snapshot to claude-sonnet-4-6 ☝🏾#892
NyranMoodie merged 2 commits into
colorstackorg:mainfrom
jnanda97:fix-resume-review-bug

Conversation

@jnanda97

@jnanda97 jnanda97 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description ✏️

getChatCompletion in packages/core/src/infrastructure/ai.ts was hardcoding claude-sonnet-4-5-20250514, a
dated model snapshot that Anthropic retired on June 15, 2026. This was causing the resume review tool to fail.

Because the error handling handles only special cases 429 (rate limit) and 529 (overloaded), the failure fell
into the generic branch and surfaced as "failed to fetch chat completion" — making it look like a random
outage rather than a retired model.

Closes this issue that first identified this bug.

Describe what this PR does.

  • This PR swaps the model string to claude-sonnet-4-6 (Anthropic's recommended successor) in three spots: the
    JSDoc default, the TypeScript type, and the default parameter.

Type of Change 🐞

  • Feature - A non-breaking change which adds functionality.
  • Fix - A non-breaking change which fixes an issue.
  • Refactor - A change that neither fixes a bug nor adds a feature.
  • Documentation - A change only to in-code or markdown documentation.
  • Tests - A change that adds missing unit/integration tests.
  • Chore - A change that is likely none of the above.

Checklist ✅

  • I have done a self-review of my code.
  • I have manually tested my code (if applicable).
  • I have added/updated any relevant documentation (if applicable).

@NyranMoodie
NyranMoodie merged commit 0012197 into colorstackorg:main Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants