-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Closed
Labels
✨ enhancementNew feature or requestNew feature or request
Description
What features would you like to see added?
Add Claude Opus 4.6 model to the available model configuration.
Claude Opus 4.6 is the latest version in the Opus 4.x series and should be available for users to select in LibreChat. The model supports 64K max output tokens and uses the same pricing structure as Opus 4.5.
Models to add:
claude-opus-4-6tosharedAnthropicModelsarray
Files to update:
packages/data-provider/src/config.ts- Add model to arrayapi/models/tx.js- Add pricing configuration (matching opus-4-5)
More details
Background
Claude Opus 4.6 is the latest version in Anthropic's Opus 4.x model series, offering improved performance and capabilities for complex reasoning tasks. It should be available alongside other Opus 4.x models (opus-4-1, opus-4-5) in the model selection.
Implementation Details
Model Configuration:
- Model name:
claude-opus-4-6 - Max output tokens: 64K (handled automatically via existing regex patterns in
schemas.ts) - Pricing: Same as opus-4-5 (prompt: 5, completion: 25, cache: write 6.25, read 0.5)
Files to Modify:
-
packages/data-provider/src/config.ts- Add
claude-opus-4-6tosharedAnthropicModelsarray (afterclaude-opus-4-5)
- Add
-
api/models/tx.js- Add pricing entry in
tokenValuesobject - Add cache pricing entry in
cacheValuesobject
- Add pricing entry in
Expected Behavior
After implementation, claude-opus-4-6 should:
- Appear in the model selection dropdown for Anthropic endpoint
- Support 64K max output tokens (via existing regex patterns)
- Use correct pricing for token calculations
- Work seamlessly with existing model infrastructure
Testing
- Verify model appears in UI
- Confirm 64K token limit works (existing regex should handle this)
- Test pricing calculations
- Run build and lint checks
References
- Anthropic API documentation
- Existing Opus 4.x model implementations in codebase
Which components are impacted by your request?
General
Pictures
Direct Changes
packages/data-provider/src/config.ts- Add model tosharedAnthropicModelsarrayapi/models/tx.js- Add pricing configuration
Automatically Updated (No Code Changes)
- Backend API - Model fetching services will automatically include the new model
- Frontend UI - Model selection dropdowns will automatically show the new model
- Settings panels - Model configuration options will automatically include it
No Changes Needed
- Token limits - Already handled via regex patterns (opus-4-6 matches 4.5+ pattern for 64K)
- Test files - Already have tests for opus-4-6 in
schemas.spec.ts - Bedrock models - Not needed (opus-4-5 also not in Bedrock list)
- Vertex AI - Uses different naming conventions
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
✨ enhancementNew feature or requestNew feature or request