import { isExcludedModel } from "../compat/behavior"; import type { Api, ModelSpec } from "../types"; /** * Remove models.dev rows that OMP cannot route successfully; the roster * policy lives in the `exclude-models` behavior rules. * * Generation and runtime refresh share this policy so a live catalog cannot * reintroduce selectors deliberately excluded from the bundled catalog. */ export function filterModelsDevCatalogRows(models: readonly ModelSpec[]): ModelSpec[] { return models.filter(model => !isExcludedModel(model.provider, model.id)); }