Skip to main content

Module catalog

Module catalog 

Source
Expand description

Per-family catalog source table.

Reaches the model catalog for any provider family without constructing a live ModelProvider (which would require typed runtime context like Azure’s resource/deployment or Bedrock’s region). Used by the gateway’s /api/onboard/catalog/models endpoint and the TUI’s onboard flow when the operator hasn’t supplied a credential yet.

Each family maps to a tuple (models_dev_key, openrouter_vendor_prefix); list_models_for_family walks them in that order, returning the first non-empty list.

Functions§

catalog_source_for
(models.dev key, openrouter.ai vendor prefix) for a family name. Either or both can be None for families with no public catalog (local-only servers, credential-required APIs without a public /models index).
list_models_for_family
Probe the catalog for family without constructing a live provider. Returns the union of every known public catalog source. Errors if family is unknown or has no public catalog source set.