-
Notifications
You must be signed in to change notification settings - Fork 717
feat: add Claude Opus 4.6 model to playground #11280
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
feat: add Claude Opus 4.6 model to playground #11280
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
Addressed the Cursor Bugbot feedback: added the missing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
RogerHYang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
Summary
Adds Claude Opus 4.6 (
claude-opus-4-6) support to the Phoenix playground and cost tracking, addressing the request in #11270.Changes
claude-opus-4-6withAnthropicReasoningStreamingClient, which provides extended thinking parameter supportanthropic.claude-opus-4-6-v1withBedrockStreamingClientclaude-opus-4-6entry tomodel_cost_manifest.jsonwith correct pricing ($5/$25 per MTok input/output, plus cache read/write rates matching Opus 4.5)Why this approach
Claude Opus 4.6 supports extended thinking (like all Claude 4.x models), so it is registered with
AnthropicReasoningStreamingClientrather than the baseAnthropicStreamingClient. This ensures thethinkinginvocation parameter is available in the playground UI.The model does not have a separate dated version ID -- Anthropic uses
claude-opus-4-6as both the alias and the API ID (source).Pricing is sourced from Anthropic's pricing page.
Note on scope
This PR covers the core integration (model registration + cost tracking). The more advanced features mentioned in #11270 (adaptive thinking toggle, effort parameter, compaction API, data residency controls) would require more significant UI and backend changes and are better suited for follow-up work.
Test plan
claude-opus-4-6appears in the Anthropic provider model dropdownanthropic.claude-opus-4-6-v1appears in the AWS Bedrock provider model dropdownthinking(extended thinking) invocation parameter is available when Opus 4.6 is selectedCloses #11270
Note
Low Risk
Adds new model identifiers and pricing metadata without changing core request/streaming logic; risk is limited to incorrect model routing or cost calculations if the IDs/rates are wrong.
Overview
Adds Claude Opus 4.6 model selection support in the playground by registering
claude-opus-4-6under the Anthropic reasoning client (enabling thethinkingparameter) andanthropic.claude-opus-4-6-v1under the AWS Bedrock client.Updates cost tracking by adding
claude-opus-4-6(and a dated variant) tomodel_cost_manifest.jsonwith token pricing (input/output plus cache read/write rates) so spans can be costed correctly.Written by Cursor Bugbot for commit f576a41. This will update automatically on new commits. Configure here.