Skip to content

Conversation

arafatkatze
Copy link
Contributor

@arafatkatze arafatkatze commented Aug 6, 2025

Description

#5369

In this PR I missed thinking UX and prompt caching so this PR fixes that

Test Procedure

Tested locally with the debugger
image
image

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 support for claude-opus-4-1-20250805 model with prompt caching and thinking in anthropic.ts and AnthropicProvider.tsx.

  • Behavior:
    • Adds support for claude-opus-4-1-20250805 model in anthropic.ts for prompt caching and thinking.
    • Updates createMessage() in anthropic.ts to handle prompt caching and thinking for the new model.
  • Frontend:
    • Adds claude-opus-4-1-20250805 to SUPPORTED_ANTHROPIC_THINKING_MODELS in AnthropicProvider.tsx.
    • Ensures ThinkingBudgetSlider is displayed for the new model in AnthropicProvider.tsx.

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

@Copilot Copilot AI review requested due to automatic review settings August 6, 2025 05:02
Copy link

changeset-bot bot commented Aug 6, 2025

🦋 Changeset detected

Latest commit: 2a95dcd

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 the new Claude Opus 4.1 model (claude-opus-4-1-20250805) to enable prompt caching and thinking features that were missing from the initial Opus 4.1 support.

  • Adds the new model identifier to the supported thinking models list
  • Includes the model in prompt caching logic to ensure optimal performance
  • Extends existing model handling to support the new version

Reviewed Changes

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

File Description
webview-ui/src/components/settings/providers/AnthropicProvider.tsx Adds new model to thinking models support list
src/api/providers/anthropic.ts Adds model to prompt caching and API handling logic

@arafatkatze arafatkatze changed the title Support prompt caching and thinking for Opus 4.1 Fix support for prompt caching and thinking for Opus 4.1 Aug 6, 2025
Copy link
Contributor

github-actions bot commented Aug 6, 2025

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 46%

⚠️ Warning: Coverage decreased by 1.55%

Consider adding tests to cover your changes.

Webview Coverage

Base branch: 17%

PR branch: 17%

✅ Coverage increased or remained the same

Overall Assessment

⚠️ Test coverage has decreased in this PR

Please consider adding tests to maintain or improve coverage.

Last updated: 2025-08-06T05:11:03.821862

@pashpashpash pashpashpash merged commit 3e11271 into main Aug 6, 2025
11 of 12 checks passed
ARQAWA pushed a commit to ARQAWA/cline that referenced this pull request Aug 12, 2025
…5386) (#6931)

Co-authored-by: Luis Daniel Riccio Silva <danriccio@Dans-MacBook-Pro.local>
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