feat(model-picker): add missing model shortcut aliases#23
Closed
0xCheetah1 wants to merge 3 commits intoBlockRunAI:mainfrom
Closed
feat(model-picker): add missing model shortcut aliases#230xCheetah1 wants to merge 3 commits intoBlockRunAI:mainfrom
0xCheetah1 wants to merge 3 commits intoBlockRunAI:mainfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sonnet-4.6,haiku-4.5aliases for Anthropic modelsgemini-2.5,gemini-3.1aliases for Google modelsgrok-3,grok-4.1aliases for xAI modelsm2.7alias for Minimax M2.7k2.6,k2.5aliases for Kimi K2.6/K2.5Previously, shortcuts like
/model k2.6or/model gemini-2.5would 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')returnsmoonshot/kimi-k2.6resolveModel('k2.5')returnsmoonshot/kimi-k2.5resolveModel('m2.7')returnsminimax/minimax-m2.7resolveModel('gemini-2.5')returnsgoogle/gemini-2.5-proresolveModel('gemini-3.1')returnsgoogle/gemini-3.1-proresolveModel('grok-3')returnsxai/grok-3resolveModel('grok-4.1')returnsxai/grok-4-1-fast-reasoningresolveModel('sonnet-4.6')returnsanthropic/claude-sonnet-4.6resolveModel('haiku-4.5')returnsanthropic/claude-haiku-4.5-20251001