Commit 6f67be7
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
427 | 430 | | |
428 | 431 | | |
429 | 432 | | |
| |||
0 commit comments