* Model Deprecation Auto-Forward — Feature 2 Maps deprecated model IDs to their replacements so user configs don't break when providers rename or retire models. Supports both built-in aliases (static) and custom aliases (persisted via Settings API). /
// Source: https://github.com/galyarderlabs/galyarder-route | License: MIT | Copyright 2026 diegosouzapw (https://github.com/diegosouzapw/OmniRoute)
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Model Deprecation Auto-Forward — Feature 2
*
* Maps deprecated model IDs to their replacements so user configs
* don't break when providers rename or retire models.
*
* Supports both built-in aliases (static) and custom aliases (persisted via Settings API).
*/
// ── Built-in Deprecation Aliases ────────────────────────────────────────────
// These are known renames/retirements across providers.
// Format: deprecated ID → current ID
const BUILT_IN_ALIASES: Record<string, string> = {
// Gemini legacy → current
"gemini-pro": "gemini-2.5-pro",
"gemini-pro-vision":
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key