Skip to content

feat(model-picker): add missing model shortcut aliases#23

Closed
0xCheetah1 wants to merge 3 commits intoBlockRunAI:mainfrom
0xCheetah1:fix/add-missing-model-aliases
Closed

feat(model-picker): add missing model shortcut aliases#23
0xCheetah1 wants to merge 3 commits intoBlockRunAI:mainfrom
0xCheetah1:fix/add-missing-model-aliases

Conversation

@0xCheetah1
Copy link
Copy Markdown
Contributor

@0xCheetah1 0xCheetah1 commented Apr 28, 2026

Summary

  • Add sonnet-4.6, haiku-4.5 aliases for Anthropic models
  • Add gemini-2.5, gemini-3.1 aliases for Google models
  • Add grok-3, grok-4.1 aliases for xAI models
  • Add m2.7 alias for Minimax M2.7
  • Add k2.6, k2.5 aliases for Kimi K2.6/K2.5

Previously, shortcuts like /model k2.6 or /model gemini-2.5 would fall through unresolved and pass the raw string to the gateway. These aliases fill the gaps so common shorthand names work as expected.

Test plan

  • resolveModel('k2.6') returns moonshot/kimi-k2.6
  • resolveModel('k2.5') returns moonshot/kimi-k2.5
  • resolveModel('m2.7') returns minimax/minimax-m2.7
  • resolveModel('gemini-2.5') returns google/gemini-2.5-pro
  • resolveModel('gemini-3.1') returns google/gemini-3.1-pro
  • resolveModel('grok-3') returns xai/grok-3
  • resolveModel('grok-4.1') returns xai/grok-4-1-fast-reasoning
  • resolveModel('sonnet-4.6') returns anthropic/claude-sonnet-4.6
  • resolveModel('haiku-4.5') returns anthropic/claude-haiku-4.5-20251001

0xCheetah1 and others added 3 commits April 28, 2026 11:34
Add intuitive shorthand aliases that were missing from MODEL_SHORTCUTS:
- sonnet-4.6, haiku-4.5 (Anthropic)
- gemini-2.5, gemini-3.1 (Google)
- grok-3, grok-4.1 (xAI)
- m2.7 (Minimax M2.7)
- k2.6, k2.5 (Kimi K2.6/K2.5)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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