FineTuningRequest

@Serializable
data class FineTuningRequest(val trainingFile: FileId, val model: ModelId, val validationFile: FileId? = null, val hyperparameters: Hyperparameters? = null, val suffix: String? = null)

A data class representing a fine-tuning request.

Constructors

Link copied to clipboard
constructor(trainingFile: FileId, model: ModelId, validationFile: FileId? = null, hyperparameters: Hyperparameters? = null, suffix: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "hyperparameters")
val hyperparameters: Hyperparameters? = null

The hyperparameters used for the fine-tuning job.

Link copied to clipboard
@SerialName(value = "model")
val model: ModelId

The name of the model to fine-tune. You can select one of the /docs/guides/fine-tuning/what-models-can-be-fine-tuned.

Link copied to clipboard
@SerialName(value = "suffix")
val suffix: String? = null

A string of up to 18 characters that will be added to your fine-tuned model name. For example, a suffix of "custom-model-name" would produce a model name like ft:gpt-3.5-turbo:openai:custom-model-name:7p4lURel.

Link copied to clipboard
@SerialName(value = "training_file")
val trainingFile: FileId

The ID of an uploaded file that contains training data. See /docs/api-reference/files/upload for how to upload a file.

Link copied to clipboard
@SerialName(value = "validation_file")
val validationFile: FileId? = null

The ID of an uploaded file that contains validation data.