getListFineTunes method

Future<ListFineTunesResponse> getListFineTunes({
  1. required String apiKey,
})

List your organization's fine-tuning jobs

Implementation

Future<ListFineTunesResponse> getListFineTunes(
    {required String apiKey}) async {
  final response = await dio.get(UrlBuilder.fineTunesPath,
      options: Options(headers: {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer $apiKey'
      }));
  return ListFineTunesResponse.fromMap(response.data);
}