Skip to content

Commit 6f67be7

Browse files
Mithilesh Gauriharclaude
authored andcommitted
fix(sync_models): protect MiniMax local profiles from pass-2 deprecation
Add the three MiniMax local-deploy profiles (minimax-m2-local, minimax-m2-5-local, minimax-m2-7-local) to protected_profiles. Their `model` fields are HuggingFace paths (MiniMaxAI/MiniMax-M2.X) that the MiniMax /v1/models endpoint never returns, so merger.py's pass-2 deprecation check would mark them deprecated as soon as _source_is_authoritative starts matching `<provider> API` against the 'manual' modelSource - the local profiles survive today only via an unrelated string-mismatch quirk in that authority check. Defense in depth - explicitly protect rather than rely on the quirk. Addresses CodeRabbit review feedback on PR #1046. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 1b8ef80 commit 6f67be7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/src/sync_models.config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,10 @@
423423
["minimax-m2-5-highspeed", "2026-10-09"],
424424
["minimax-m2-7", "2026-10-09"],
425425
["minimax-m2-7-highspeed", "2026-10-09"],
426-
["minimax-m3", "2026-10-09"]
426+
["minimax-m3", "2026-10-09"],
427+
["minimax-m2-local", "2026-10-09"],
428+
["minimax-m2-5-local", "2026-10-09"],
429+
["minimax-m2-7-local", "2026-10-09"]
427430
],
428431
"token_limit_overrides": {
429432
// MiniMax's /v1/models endpoint doesn't return context_window. Lock every

0 commit comments

Comments
 (0)