Add 6 new opensource model mappings (M3, Qwen 3.7, Step 3.7, MiMo v2.5)#1
Open
Dan1el-19 wants to merge 4 commits into
Open
Add 6 new opensource model mappings (M3, Qwen 3.7, Step 3.7, MiMo v2.5)#1Dan1el-19 wants to merge 4 commits into
Dan1el-19 wants to merge 4 commits into
Conversation
added 4 commits
June 2, 2026 12:30
…iniMax M3) New full IDs accepted (and listed via /v1/models): - Qwen/Qwen3.7-Max-Free - Qwen/Qwen3.7-Max - stepfun/Step-3.7-Flash - xiaomi/mimo-v2.5-pro - xiaomi/mimo-v2.5 - MiniMaxAI/MiniMax-M3
- Add short aliases matching existing pattern (e.g. 'minimax-m3', 'qwen3.7-max', 'mimo') - Keep full IDs as pass-through - Add internal/proxy/model_test.go covering all mappings - Update README alias table
|
Hi @dev2k6 , |
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.
Adds support for newer CommandCode opensource models and introduces unit tests for the model mapping function.
New models
MiniMaxAI/MiniMax-M3(alias:minimax-m3,minimax3)Qwen/Qwen3.7-Max-Free(alias:qwen-3.7-max-free,qwen3.7-max-free)Qwen/Qwen3.7-Max(alias:qwen-3.7-max,qwen3.7-max)stepfun/Step-3.7-Flash(alias:step-3.7-flash,step3.7)xiaomi/mimo-v2.5-pro(alias:mimo-v2.5-pro,mimo-pro)xiaomi/mimo-v2.5(alias:mimo-v2.5,mimo)All new entries are also accepted via their full IDs (pass-through), matching the convention used for the existing models.
Changes
internal/proxy/model.go— new switch cases following the existing alias patterninternal/proxy/proxy.go—HandleModelslists the new full IDsinternal/proxy/model_test.go— new unit tests covering all 18 model mappings (the package previously had no tests)README.md— alias table updatedVerification
go test ./...— PASSgo vet ./...— clean/v1/chat/completionsend-to-end against the live CommandCode API.