Utilities to resolve Claude model aliases and add provider prefixes for LLM APIs.
// Source: https://github.com/EveryInc/compound-engineering-plugin | License: MIT | Copyright 2025 Every
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Shared model normalization utilities for cross-platform conversion.
*
* Claude Code uses bare family aliases (`model: sonnet`) that must be
* resolved differently depending on the target platform.
*/
/**
* Bare Claude family aliases used in Claude Code (e.g. `model: haiku`).
* Maps alias -> canonical model name (without provider prefix).
* Update these when new model generations are released.
*/
export const CLAUDE_FAMILY_ALIASES: Record<string, string> = {
haiku: "claude-haiku-4-5",
sonnet: "claude-sonnet-5-5",
opus: "claude-opus-5-5",
}
/**
* Canonical Claude model IDs that reject non-default samp
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key