Skip to content

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
dev2k6:mainfrom
Dan1el-19:feat/extend-opensource-models
Open

Add 6 new opensource model mappings (M3, Qwen 3.7, Step 3.7, MiMo v2.5)#1
Dan1el-19 wants to merge 4 commits into
dev2k6:mainfrom
Dan1el-19:feat/extend-opensource-models

Conversation

@Dan1el-19

Copy link
Copy Markdown

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 pattern
  • internal/proxy/proxy.goHandleModels lists the new full IDs
  • internal/proxy/model_test.go — new unit tests covering all 18 model mappings (the package previously had no tests)
  • README.md — alias table updated

Verification

  • go test ./... — PASS
  • go vet ./... — clean
  • All 18 models (12 existing + 6 new) return HTTP 200 from /v1/chat/completions end-to-end against the live CommandCode API.

opencode 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
@abdullaunais

Copy link
Copy Markdown

Hi @dev2k6 ,
Can you please merge this. I verified this and its working.

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.

2 participants