retriveFineTune method

Future<FineTunesResponse> retriveFineTune({
  1. required String fineTuneId,
  2. required String apiKey,
})

Gets info about the fine-tune job.

Implementation

Future<FineTunesResponse> retriveFineTune(
    {required String fineTuneId, required String apiKey}) async {
  final response = await dio.get(UrlBuilder.fineTunesPathWithId(fineTuneId),
      options: Options(headers: {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer $apiKey'
      }));

  return FineTunesResponse.fromMap(response.data);
}