/** Returns the configured family alias for `modelId`, or `undefined`. Malformed entries are treated as unset. */
function getModelFamilyAlias(overrides: CopilotCliModelCapabilityOverrides | undefined, modelId: string): string | undefined {
copilotCliConfig.ts
const family = overrides?.[modelId]?.family;
return typeof family === 'string' && family.length > 0 ? family : undefined;
}
/**