createFineTune method
Creates a job that fine-tunes a specified model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
Implementation
Future<FineTunesResponse> createFineTune(
{required Map<String, dynamic> trainingParams,
required String apiKey}) async {
final response = await dio.post(UrlBuilder.fineTunesPath,
data: trainingParams,
options: Options(headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer $apiKey'
}));
return FineTunesResponse.fromMap(response.data);
}