normalizeDetectedFamilyName (shared/detectedFamilyNames.ts)

vmlx · panel/src/shared/detectedFamilyNames.ts · typescript · Apache-2.0
ui, tag:embed-classified

Maps engine family names to panel registry names and offers helper functions for GLM/GLM5 concurrency.

// Source: https://github.com/jjang-ai/vmlx | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Canonical mapping from an ENGINE family_name to the panel's REGISTRY name.
 *
 * The engine and the panel deliberately spell some families differently
 * (`deepseek_v4` vs `deepseek-v4`, `zaya1_vl` vs `zaya1-vl`, `bailing_hybrid`
 * vs `ling`). Getting that translation wrong is not a cosmetic bug: a lookup
 * keyed on the wrong spelling silently misses, the setting appears to apply,
 * and the fix reads as a no-op — this project has shipped that failure before.
 *
 * These two rules previously existed as three byte-identical private copies
 * each (src/main/sessions.ts, SessionConfig

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key