chatFallbackFor method

List<String> chatFallbackFor(
  1. String? providerKind
)

Chat model ids the catalog knows about for providerKind — the LAST-RESORT fallback the picker uses when the live /v1/models fetch is empty. Endpoint-reported ids always win; this list is only consulted on the empty-result branch so the picker stays useful when the endpoint can't answer.

Implementation

List<String> chatFallbackFor(String? providerKind) {
  return remoteChatModelsFor(providerKind: providerKind, catalog: _cached);
}