createFineTuneWithHttpInfo 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. Learn more about Fine-tuning
Note: This method returns the HTTP Response.
Parameters:
- CreateFineTuneRequest createFineTuneRequest (required):
Implementation
Future<Response> createFineTuneWithHttpInfo(CreateFineTuneRequest createFineTuneRequest,) async {
// ignore: prefer_const_declarations
final path = r'/fine-tunes';
// ignore: prefer_final_locals
Object? postBody = createFineTuneRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}