Skip to content

fix(models): update anthropic models - #1311

Merged
steebchen merged 2 commits into
mainfrom
steebchen-patch-1
Dec 10, 2025
Merged

steebchen merged 2 commits into
mainfrom
steebchen-patch-1

Conversation

@steebchen

@steebchen steebchen commented Dec 10, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Added Claude Sonnet 4.5 and Claude Haiku 4.5 model support across multiple providers.
  • Updates

    • Increased maximum output capacity for Claude models to 64,000 tokens.
    • Enhanced model configuration consistency and provider coverage.

✏️ Tip: You can customize this high-level summary in your review settings.

Copilot AI review requested due to automatic review settings December 10, 2025 10:28
@github-actions github-actions Bot changed the title Add new models and update existing model details feat(models): update models Dec 10, 2025
@coderabbitai

coderabbitai Bot commented Dec 10, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Updates anthropic.ts model configurations by adding new Claude Sonnet 4.5 (2025-09-29) and Haiku 4.5 (2025-10-01) model entries with multi-provider support, normalizing maxOutput to 64000 across Claude family variants, and expanding provider coverage including Routeway-Discount and AWS Bedrock.

Changes

Cohort / File(s) Summary
Claude Model Configuration Updates
packages/models/src/models/anthropic.ts
Added new Claude Sonnet 4.5 (2025-09-29) and v1:0 variant entries with multi-provider configurations (Anthropic, Routeway-Discount, AWS Bedrock). Added Claude Haiku 4.5 (2025-10-01) entries. Standardized maxOutput values to 64000 across Sonnet, Haiku, and related Claude variants. Updated pricing, reasoning, streaming, vision, tools, and discount fields across model entries.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10–15 minutes

  • Multiple model entries updated across Sonnet, Haiku, and Opus variants with consistent patterns
  • Single-file change with primarily data/configuration updates
  • Multi-provider configurations added with repetitive structure
  • No complex logic changes or control flow modifications

Possibly related PRs

Suggested reviewers

  • smakosh

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(models): update anthropic models' accurately describes the main change: updates to Anthropic model configurations including maxOutput values, new Claude variants, and provider information.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch steebchen-patch-1

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ebf791e and b5bd67d.

📒 Files selected for processing (1)
  • packages/models/src/models/anthropic.ts (3 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Never use any or as any unless absolutely necessary in TypeScript code
For database reads: Use db().query.<table>.findMany() or db().query.<table>.findFirst()

Files:

  • packages/models/src/models/anthropic.ts
**/*.{ts,tsx,js,jsx,json,md}

📄 CodeRabbit inference engine (CLAUDE.md)

Always use tabs for indentation

Files:

  • packages/models/src/models/anthropic.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,js,jsx}: Always use top-level import, never use require or dynamic imports
No unnecessary code comments

Files:

  • packages/models/src/models/anthropic.ts
**/*.{js,ts,tsx,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Always use top-level import, never use require or dynamic imports

Files:

  • packages/models/src/models/anthropic.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: e2e-shards (5)
  • GitHub Check: e2e-shards (3)
  • GitHub Check: e2e-shards (2)
  • GitHub Check: e2e-shards (4)
  • GitHub Check: e2e-shards (1)
  • GitHub Check: build / run
  • GitHub Check: generate / run
  • GitHub Check: test / run
  • GitHub Check: lint / run
  • GitHub Check: autofix
🔇 Additional comments (3)
packages/models/src/models/anthropic.ts (3)

304-359: New dated model entry looks good.

The new claude-sonnet-4-5-20250929 model entry is well-structured and follows the established pattern for dated model versions. All required fields are present and the provider configurations are consistent with the parent claude-sonnet-4-5 model.


378-383: LGTM - Normalizing model configuration.

The addition of maxOutput: 64000 and explicit capability flags (streaming, vision, tools) properly normalizes the model configuration, making the capabilities clear and consistent with other Claude 4.5 models.


266-301: Verify maxOutput discrepancy between providers for Claude Sonnet 4.5 models.

The maxOutput is set to 64000 for both anthropic and routeway-discount providers, but only 8192 for the aws-bedrock provider. This pattern appears consistently for both claude-sonnet-4-5 variants (lines 295 and 352).

Verify whether AWS Bedrock genuinely enforces this lower output limit for these models, or if this is an unintended discrepancy that could cause unexpected truncation.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@steebchen steebchen changed the title feat(models): update models fix(models): update anthropic models Dec 10, 2025
@steebchen
steebchen enabled auto-merge December 10, 2025 10:30
@steebchen
steebchen disabled auto-merge December 10, 2025 10:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds two new Anthropic Claude models (Sonnet 4.5 dated 2025-09-29 and Haiku 4.5 dated 2025-10-01) and updates the maximum output capacity for the existing Claude Haiku 4.5 model from 8,192 to 64,000 tokens.

  • Adds Claude Sonnet 4.5 (2025-09-29) with reasoning capabilities across three providers
  • Adds Claude Haiku 4.5 (2025-10-01) for fast, efficient processing
  • Increases maxOutput limit for Claude Haiku 4.5 to support longer responses

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +391 to +392
releasedAt: new Date("2025-09-29"),
publishedAt: new Date("2025-09-29"),

Copilot AI Dec 10, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The model ID and name indicate a release date of 2025-10-01, but the releasedAt and publishedAt fields are set to 2025-09-29. These dates should be consistent. Either update the dates to "2025-10-01" or use a different model ID/name that matches the September 29 release date.

Suggested change
releasedAt: new Date("2025-09-29"),
publishedAt: new Date("2025-09-29"),
releasedAt: new Date("2025-10-01"),
publishedAt: new Date("2025-10-01"),

Copilot uses AI. Check for mistakes.
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.

2 participants