Skip to content

Map Claude opus 1m alias for Claude Code#1

Open
Icewind52 wants to merge 1 commit intomasterfrom
fix/claude-opus-1m-alias
Open

Map Claude opus 1m alias for Claude Code#1
Icewind52 wants to merge 1 commit intomasterfrom
fix/claude-opus-1m-alias

Conversation

@Icewind52
Copy link
Copy Markdown
Owner

Summary

  • map Anthropic model alias claude-opus-4-6-1m to Copilot model id claude-opus-4.6-1m
  • keep alias handling in the Claude messages translation path used by Claude Code
  • make /v1/messages/count_tokens resolve the translated model id for accurate token counting
  • add a regression test for the new alias mapping

Testing

  • bun test tests/anthropic-request.test.ts

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