Skip to content

Add Claude Opus 4.5 to Anthropic and Vertex providers#1679

Merged
ravikiranvm merged 3 commits intomainfrom
ops-3139
Nov 26, 2025
Merged

Add Claude Opus 4.5 to Anthropic and Vertex providers#1679
ravikiranvm merged 3 commits intomainfrom
ops-3139

Conversation

@ravikiranvm
Copy link
Copy Markdown
Contributor

@ravikiranvm ravikiranvm commented Nov 26, 2025

Fixes OPS-3139.

Additional Notes

Summary by CodeRabbit

  • New Features

    • Added Claude Opus 4.5 models for Anthropic and Google Vertex AI providers.
  • Chores

    • Updated AI SDK dependencies to latest versions.
    • Updated third-party license documentation.

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

@linear
Copy link
Copy Markdown

linear Bot commented Nov 26, 2025

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Nov 26, 2025

Walkthrough

The PR updates AI SDK dependencies and adds support for a new Claude model variant across provider configurations. @ai-sdk/anthropic is bumped from 2.0.45 to 2.0.49, @ai-sdk/google-vertex upgraded to 3.0.80, and new Claude Opus model identifiers are added to Anthropic and Google Vertex provider arrays.

Changes

Cohort / File(s) Summary
Dependency Updates
package.json, THIRD_PARTY_LICENSES.txt
Updated @ai-sdk/anthropic from 2.0.45 to 2.0.49; upgraded @ai-sdk/google-vertex to ^3.0.80; synchronized license attribution entries to reflect new package versions.
Model Support
packages/openops/src/lib/ai/providers/anthropic.ts, packages/openops/src/lib/ai/providers/google-vertex.ts
Added new Claude model variants: 'claude-opus-4-5-20251101' to Anthropic provider models array and 'claude-opus-4-5@20251101' to Google Vertex Claude models array.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Verify dependency version bumps align with package release notes and no breaking changes
  • Confirm new model identifiers match the AI SDK documentation format (Anthropic vs. Google Vertex naming conventions)

Poem

🐰 New models hop into the fold,
Claude's opus shines, brave and bold,
Dependencies upgraded high,
Providers dance beneath the sky! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The description is largely incomplete. While the issue reference is provided, all template sections including additional context, testing checklist, and visual changes are missing or minimal. Expand the description to include: context for why Claude Opus 4.5 was added, testing verification for both providers, and confirmation that changes are backwards compatible.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding Claude Opus 4.5 to both Anthropic and Vertex providers, matching the primary modifications across multiple files.
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 ops-3139

📜 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 ba42672 and cc13987.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (4)
  • THIRD_PARTY_LICENSES.txt (2 hunks)
  • package.json (1 hunks)
  • packages/openops/src/lib/ai/providers/anthropic.ts (1 hunks)
  • packages/openops/src/lib/ai/providers/google-vertex.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (.cursor/rules/coding-guidelines.mdc)

**/*.{ts,tsx,js,jsx}: Indentation: 2 spaces for TypeScript/JavaScript
Braces required for all control blocks, even single-line
One space between keywords and parentheses: if (condition) {
Use camelCase for variables and functions
Use PascalCase for classes and types
Use UPPER_SNAKE_CASE for constants
Use lowercase with hyphens for file names (e.g., user-profile.ts)
Prefer const over let or var in TypeScript/JavaScript
Prefer arrow functions for callbacks and functional components in TypeScript/JavaScript

Files:

  • packages/openops/src/lib/ai/providers/google-vertex.ts
  • packages/openops/src/lib/ai/providers/anthropic.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/coding-guidelines.mdc)

**/*.{ts,tsx}: Use types and interfaces where appropriate in TypeScript
Use explicit return types for exported functions in TypeScript

Files:

  • packages/openops/src/lib/ai/providers/google-vertex.ts
  • packages/openops/src/lib/ai/providers/anthropic.ts
**/*.{tsx,ts}

📄 CodeRabbit inference engine (.cursor/rules/coding-guidelines.mdc)

**/*.{tsx,ts}: Frontend tech stack must strictly use: React 18, Zustand, react-query v5, shadcn, and Axios with qs package for query strings
Follow best practices for React hooks
Prefer small, composable components and extract helper functions where possible
Use cn utility to group tailwind classnames in React components

Files:

  • packages/openops/src/lib/ai/providers/google-vertex.ts
  • packages/openops/src/lib/ai/providers/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). (6)
  • GitHub Check: Test Engine and Libraries
  • GitHub Check: Test Server API
  • GitHub Check: Test Blocks Shard 2
  • GitHub Check: Test Blocks Shard 3
  • GitHub Check: Test Blocks Shard 1
  • GitHub Check: Build Project
🔇 Additional comments (5)
packages/openops/src/lib/ai/providers/anthropic.ts (1)

5-18: New Claude Opus 4.5 Anthropic model is correctly wired into the provider

Adding 'claude-opus-4-5-20251101' to anthropicModels cleanly exposes the new model via anthropicProvider.models without changing any other behavior; the ID format is consistent with existing 4.5 Anthropic model entries.

packages/openops/src/lib/ai/providers/google-vertex.ts (1)

15-25: Vertex Claude model list correctly extended with Claude Opus 4.5

The new 'claude-opus-4-5@20251101' entry matches the existing Vertex Claude ID pattern and will be routed through the same Claude-specific code path (it still satisfies the isClaude prefix check), so it should behave consistently with the other Claude models.

package.json (1)

34-41: The review comment contains critical inaccuracies regarding package versions that do not exist on npm.

After verification, I found that:

  1. @ai-sdk/anthropic 2.0.49 — Does NOT exist on npm. The latest available versions are beta releases (3.0.0-beta.62 is the most recent).

  2. @ai-sdk/google-vertex 3.0.80 — Does NOT exist on npm. The latest available versions are beta releases (4.0.0-beta.86 is the most recent).

  3. The original review comment claims these versions align with "newly added Claude Opus 4.5 model support," but this cannot be verified since these package versions don't exist in the npm registry.

  4. While the test suite names "openops" and "engine" do exist as valid packages in the workspace, the suggested verification script would be attempting to test with invalid dependency versions.

The review comment's claims are unverifiable with the stated versions, and the suggested approach to verify the changes is undermined by the fact that the package versions in package.json appear to be incorrect or outdated.

Likely an incorrect or invalid review comment.

THIRD_PARTY_LICENSES.txt (2)

10288-10297: Verify: Unrelated package change included in license file.

The @swc/core-linux-x64-musl package update in hunk 1 does not appear to be related to the PR's objectives (adding Claude Opus 4.5 support). Confirm whether this change is intentional or if the license file was regenerated with unrelated modifications.


16335-16335: License file correctly reflects all @ai-sdk package.json updates.

Verification confirms that all 15 @ai-sdk direct dependencies from package.json are present in THIRD_PARTY_LICENSES.txt with matching versions, including the @ai-sdk/anthropic@2.0.49 and @ai-sdk/google-vertex@3.0.80 updates mentioned. The additional entries in the license file are transitive dependencies and alternative versions, which is expected and correct behavior for an auto-generated license attribution file.

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


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

@ravikiranvm ravikiranvm marked this pull request as ready for review November 26, 2025 11:59
Copilot AI review requested due to automatic review settings November 26, 2025 11:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 support for Claude Opus 4.5 model (released November 1, 2025) to both the Anthropic and Google Vertex AI providers, along with necessary dependency updates.

Key Changes:

  • Added claude-opus-4-5-20251101 model identifier to the Anthropic provider
  • Added claude-opus-4-5@20251101 model identifier to the Google Vertex AI provider
  • Updated @ai-sdk/anthropic from version 2.0.45 to 2.0.49
  • Updated @ai-sdk/google-vertex from version 3.0.70 to 3.0.80

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
packages/openops/src/lib/ai/providers/anthropic.ts Adds Claude Opus 4.5 model identifier to the Anthropic models list
packages/openops/src/lib/ai/providers/google-vertex.ts Adds Claude Opus 4.5 model identifier to the Google Vertex Claude models list
package.json Updates Anthropic and Google Vertex SDK dependencies to versions that support the new model
THIRD_PARTY_LICENSES.txt Updates third-party license attributions to reflect the new dependency versions

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

@sonarqubecloud
Copy link
Copy Markdown

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Nov 26, 2025

Greptile Overview

Greptile Summary

Added Claude Opus 4.5 (released November 2025) to both Anthropic and Google Vertex AI providers by adding the model identifiers to their respective model lists.

  • Added claude-opus-4-5-20251101 to Anthropic provider
  • Added claude-opus-4-5@20251101 to Google Vertex provider (uses @ separator per Vertex naming convention)
  • Both additions follow existing patterns and naming conventions for their respective providers
  • No tests were updated, but existing test infrastructure will cover the new model since it's just an addition to the model array

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • Simple model addition following established patterns with no logic changes or breaking modifications
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
packages/openops/src/lib/ai/providers/anthropic.ts 5/5 Added claude-opus-4-5-20251101 model to the anthropic models list
packages/openops/src/lib/ai/providers/google-vertex.ts 5/5 Added claude-opus-4-5@20251101 model to the Vertex Claude models list

Sequence Diagram

sequenceDiagram
    participant User
    participant API
    participant ProviderModule
    participant AnthropicProvider
    participant VertexProvider
    participant AISDKs

    User->>API: Request to use Claude Opus 4.5
    API->>ProviderModule: getAiProviderLanguageModel(config)
    ProviderModule->>ProviderModule: getAiProvider(provider enum)
    
    alt Anthropic Provider
        ProviderModule->>AnthropicProvider: createLanguageModel({model: "claude-opus-4-5-20251101"})
        AnthropicProvider->>AISDKs: createAnthropic(apiKey)
        AISDKs-->>AnthropicProvider: language model instance
        AnthropicProvider-->>ProviderModule: language model
    else Google Vertex Provider
        ProviderModule->>VertexProvider: createLanguageModel({model: "claude-opus-4-5@20251101"})
        VertexProvider->>VertexProvider: Check if model starts with "claude"
        VertexProvider->>AISDKs: createVertexAnthropic(config)
        AISDKs-->>VertexProvider: language model instance
        VertexProvider-->>ProviderModule: language model
    end
    
    ProviderModule-->>API: language model
    API->>API: generateText(model, prompt)
    API-->>User: AI response
Loading

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

4 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@ravikiranvm ravikiranvm merged commit 7211919 into main Nov 26, 2025
24 checks passed
@ravikiranvm ravikiranvm deleted the ops-3139 branch November 26, 2025 12:10
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.

3 participants