models method
Models the project's saved keys can reach: {id, provider, kind, default?}.
Implementation
Future<List<Map<String, dynamic>>> models() async {
try {
final res = await _httpClient.get(_path('models'));
return (res.data as List).map((m) => Map<String, dynamic>.from(m as Map)).toList();
} catch (e) {
throw await AiException.fromError(e);
}
}