ModelsEndpointFetcher typedef
ModelsEndpointFetcher =
Future<ModelsEndpointInfo> Function(String baseUrl, {required String apiKey})
Fetches and parses the /models payload of baseUrl (hosts inject fakes
in tests; production defaults do the HTTP GET + parseModelsResponse).
Implementation
typedef ModelsEndpointFetcher =
Future<ModelsEndpointInfo> Function(
String baseUrl, {
required String apiKey,
});