import type { Model } from './types'; // Model ids persisted in conversation settings (and submitted by stale // clients) outlive the picker catalog. Map retired ids to their successors // so old conversations keep resolving to a routable, correctly priced model. export const LEGACY_MODEL_IDS: Record = { 'openai/gpt-5.5': 'openai/gpt-5.6-sol', }; export function normalizeModelId(model: Model): Model { return LEGACY_MODEL_IDS[model] ?? model; }