Skip to content

Conversation

@1bcMax
Copy link
Contributor

@1bcMax 1bcMax commented Feb 11, 2026

Summary

Fixes #349 - opus-4-6 model not being tracked.

Problem

When Claude Code reports model names without date suffixes (e.g., claude-opus-4-6 instead of claude-opus-4-6-20260205), the cost tracking lookup fails because only the full dated versions existed in the pricing dictionary.

Solution

Added short alias entries for:

  • claude-haiku-4-5 (matches claude-haiku-4-5-20251001)
  • claude-opus-4-5 (matches claude-opus-4-5-20251101)
  • claude-opus-4-6 (matches claude-opus-4-6-20260205)

This follows the existing pattern used for claude-sonnet-4-5 and claude-opus-4-1 which already had short versions.

Testing

  • Build passes: swift build completes successfully
  • Pattern matches existing model aliases in the codebase

When Claude Code reports model names without date suffixes (e.g.,
'claude-opus-4-6' instead of 'claude-opus-4-6-20260205'), the cost
tracking lookup fails because only the full dated versions existed
in the pricing dictionary.

This adds short aliases matching other models like 'claude-sonnet-4-5'
and 'claude-opus-4-1' which already had short versions.

Fixes steipete#349
@ratulsarna ratulsarna merged commit 1ff30b9 into steipete:main Feb 11, 2026
4 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.

Not tracking the opus-4-6 model cost

2 participants