CreateFineTuningJobRequest class

Request object for the Create fine-tuning job endpoint.

Annotations
  • @freezed

Constructors

CreateFineTuningJobRequest({@_FineTuningModelConverter() required FineTuningModel model, @JsonKey(name: 'training_file') required String trainingFile, @JsonKey(includeIfNull: false) FineTuningJobHyperparameters? hyperparameters, @JsonKey(includeIfNull: false) String? suffix, @JsonKey(name: 'validation_file', includeIfNull: false) String? validationFile, @JsonKey(includeIfNull: false) List<FineTuningIntegration>? integrations, @JsonKey(includeIfNull: false) int? seed})
Factory constructor for CreateFineTuningJobRequest
const
factory
CreateFineTuningJobRequest.fromJson(Map<String, dynamic> json)
Object construction from a JSON representation
factory

Properties

copyWith → $CreateFineTuningJobRequestCopyWith<CreateFineTuningJobRequest>
Create a copy of CreateFineTuningJobRequest with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hyperparameters FineTuningJobHyperparameters?
The hyperparameters used for the fine-tuning job. See the fine-tuning guide for more details.
no setterinherited
integrations List<FineTuningIntegration>?
A list of integrations to enable for your fine-tuning job.
no setterinherited
model FineTuningModel
The name of the model to fine-tune. You can select one of the supported models.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int?
The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.
no setterinherited
suffix String?
A string of up to 64 characters that will be added to your fine-tuned model name.
no setterinherited
trainingFile String
The ID of an uploaded file that contains training data.
no setterinherited
validationFile String?
The ID of an uploaded file that contains validation data.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this CreateFineTuningJobRequest to a JSON map.
inherited
toMap() Map<String, dynamic>
Map representation of object (not serialized)
toString() String
A string representation of this object.
inherited
validateSchema() String?
Perform validations on the schema property values

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

propertyNames → const List<String>
List of all property names of schema
seedMaxValue → const int
seedMinValue → const int
suffixMaxLengthValue → const int
suffixMinLengthValue → const int
Validation constants