Skip to content

fix(model-normalize): strip base-vendor prefix for regional-variant providers - #17079

Closed
luoshan5261486 wants to merge 1 commit into
NousResearch:mainfrom
luoshan5261486:main
Closed

fix(model-normalize): strip base-vendor prefix for regional-variant providers#17079
luoshan5261486 wants to merge 1 commit into
NousResearch:mainfrom
luoshan5261486:main

Conversation

@luoshan5261486

Copy link
Copy Markdown

Fix #12140 — Regional-variant provider prefix stripping

Problem

Catalog entries like minimax/minimax-m2.7 routed through provider: minimax-cn kept the vendor slash intact, causing API unknown model failures. This cascaded into memory summarisation collapse and image recognition timeouts.

Solution

  • Added _REGIONAL_VARIANT_ROOTS mapping (minimax-cnminimax, kimi-coding-cnkimi-coding)
  • _strip_matching_provider_prefix now checks this mapping as a fallback after primary prefix match fails
  • Added full test suite covering MiniMax-CN, Kimi-Coding-CN, preserved behaviours, and edge cases

Testing

All new tests pass. Verified against the exact reporter inputs from #12140.

Related

Base PR: #12140 (Briandevans) — this fork diverges slightly in test structure but implements the same fix.

…roviders

Fixes #12140 — Regional-variant providers (minimax-cn,
kimi-coding-cn) now accept their base vendor's prefix when
normalizing model names.

Problem: catalog entries like 'minimax/minimax-m2.7' routed
through 'provider: minimax-cn' kept the vendor slash intact,
causing API 'unknown model' failures that cascaded into memory
summarisation collapse and image recognition timeouts.

Solution: _REGIONAL_VARIANT_ROOTS maps each regional target to
its base vendor; _strip_matching_provider_prefix checks this
mapping as a fallback after the primary prefix match fails.

Co-authored-by: briandevans <briandevans@users.noreply.github.com>
Co-authored-by: laicai <laicai@laicai.io>
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 28, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #12165 — both implement the same _REGIONAL_VARIANT_ROOTS mapping to fix #12140.

@luoshan5261486

luoshan5261486 commented Apr 28, 2026

Copy link
Copy Markdown
Author

This PR is a duplicate of #12165 (same fix by Briandevans), open but unmerged for a while.

Bug #12140 causes minimax/minimax-m2.7 style catalog entries to reach the minimax-cn API with the vendor prefix intact, producing unknown model errors that cascade into memory summarisation collapse and image recognition failures.

The CI failures shown in the checks are all pre-existing issues on main, unrelated to this PR's changes — the same failures appear in recently-merged PRs like #17046, #17093, etc.

Requesting merge of either this PR or #12165 to unblock the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auxiliary compression fails with minimax-cn: model name not normalized in auto-detect

2 participants