# Function filterAvailableModels

- filterAvailableModels(
  modelIds: readonly string[],
  cache: AvailabilityCache,
  ): { available: string[]; removed: string[] }

  Filters out known-unavailable models from a set of model IDs. Returns the filtered set, or null if no models were removed. Used by scoreAllModels() to skip unavailable models.

  #### Parameters

  - modelIds: readonly string[]
  - cache: AvailabilityCache

  #### Returns { available: string[]; removed: string[] }

  - Defined in packages/nexus-agents/src/config/model-availability.ts:210