Skip to content

Add support for Claude Opus 4.6#69

Merged
sebsto merged 3 commits intomainfrom
sebsto/opus46
Feb 9, 2026
Merged

Add support for Claude Opus 4.6#69
sebsto merged 3 commits intomainfrom
sebsto/opus46

Conversation

@sebsto
Copy link
Collaborator

@sebsto sebsto commented Feb 9, 2026

This PR adds support for Anthropic's Claude Opus 4.6 model to the Bedrock service library.

Changes

  • Added claude_opus_v4_6 model definition in AnthropicBedrockModels.swift
  • Implemented Claude_Opus_v4_6 modality struct in AnthropicGlobalModels.swift with support for:
    • Text generation
    • Converse API (streaming and non-streaming)
    • Global cross-region inference
  • Updated BedrockModel.swift to include the new model in the initialization logic

Model Specifications

  • Model ID: anthropic.claude-opus-4-6-v1
  • Max tokens: 128,000 (default: 8,192)
  • Max prompt size: 200,000 tokens
  • Max reasoning tokens: 8,191 (default: 4,096)
  • Features: Text generation, system prompts, document processing, vision, tool use, reasoning

Technical Details

The implementation follows the existing pattern for Anthropic models, delegating to the AnthropicText helper for request/response handling while implementing the required modality protocols for Bedrock and Converse API compatibility.
Revert

@sebsto sebsto self-assigned this Feb 9, 2026
@sebsto sebsto merged commit be0406c into main Feb 9, 2026
22 of 24 checks passed
@sebsto sebsto deleted the sebsto/opus46 branch February 9, 2026 16:03
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.

1 participant