Skip to content

Adding Anthropic opus 4.1 #5369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 5, 2025
Merged

Adding Anthropic opus 4.1 #5369

merged 2 commits into from
Aug 5, 2025

Conversation

arafatkatze
Copy link
Contributor

@arafatkatze arafatkatze commented Aug 5, 2025

Description

image

Test Procedure

Tested locally

Type of Change

  • [] πŸ› Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • [] πŸ’₯ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • πŸ’… Cosmetic Changes
  • πŸ“š Documentation update
  • πŸƒ Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Add claude-opus-4-1-20250805 model to anthropicModels in api.ts with specific pricing and support for images and prompt caching.

  • Behavior:
    • Adds claude-opus-4-1-20250805 to anthropicModels in api.ts.
    • Model supports images and prompt caching.
    • Pricing: input $15.0, output $75.0, cache writes $18.75, cache reads $1.5.
  • Changeset:
    • Adds changeset lovely-readers-beam.md documenting the addition as a patch for claude-dev.

This description was created by Ellipsis for 193ac85. You can customize this summary. It will automatically update as commits are pushed.

@Copilot Copilot AI review requested due to automatic review settings August 5, 2025 16:48
Copy link

changeset-bot bot commented Aug 5, 2025

πŸ¦‹ Changeset detected

Latest commit: 193ac85

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
claude-dev Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@Copilot 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 a new Anthropic model variant, Claude Opus 4.1, to the codebase.

  • Adds configuration for "claude-opus-4-1-20250805" model with pricing and capabilities
  • Maintains consistency with existing model configuration structure
Comments suppressed due to low confidence (1)

src/shared/api.ts:218

  • The model version 'claude-opus-4-1-20250805' appears to reference a date (August 5, 2025) that is in the future or may not exist. Please verify this is the correct model identifier from Anthropic's official documentation.
	"claude-opus-4-1-20250805": {

Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

github-actions bot commented Aug 5, 2025

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

βœ… Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

βœ… Coverage increased or remained the same

Overall Assessment

βœ… Test coverage has been maintained or improved

Last updated: 2025-08-05T16:58:19.951403

@pashpashpash pashpashpash merged commit 61dcbd3 into main Aug 5, 2025
12 of 13 checks passed
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