FineTuningJob

@Serializable
data class FineTuningJob(val id: FineTuningId, val createdAt: Int, val model: ModelId, val organizationId: OrganizationId, val status: Status, val hyperparameters: Hyperparameters, val trainingFile: FileId, val resultFiles: List<FileId>, val finishedAt: Int? = null, val fineTunedModel: ModelId? = null, val validationFile: FileId? = null, val trainedTokens: Int? = null, val error: ErrorInfo? = null)

A data class representing a fine-tuning job.

Constructors

Link copied to clipboard
constructor(id: FineTuningId, createdAt: Int, model: ModelId, organizationId: OrganizationId, status: Status, hyperparameters: Hyperparameters, trainingFile: FileId, resultFiles: List<FileId>, finishedAt: Int? = null, fineTunedModel: ModelId? = null, validationFile: FileId? = null, trainedTokens: Int? = null, error: ErrorInfo? = null)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Int

The Unix timestamp (in seconds) for when the fine-tuning job was created.

Link copied to clipboard
@SerialName(value = "error")
val error: ErrorInfo? = null

Contains more information on the cause of failure for failed fine-tuning jobs, or null if not failed.

Link copied to clipboard
@SerialName(value = "fine_tuned_model")
val fineTunedModel: ModelId? = null

The name of the fine-tuned model that is being created, or null if the fine-tuning job is still running.

Link copied to clipboard
@SerialName(value = "finished_at")
val finishedAt: Int? = null

The Unix timestamp (in seconds) for when the fine-tuning job was finished, or null if still running.

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

The hyperparameters used for the fine-tuning job.

Link copied to clipboard
@SerialName(value = "id")
val id: FineTuningId

The object identifier, which can be referenced in the API endpoints.

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

The base model that is being fine-tuned.

Link copied to clipboard
@SerialName(value = "organization_id")
val organizationId: OrganizationId

The organization that owns the fine-tuning job.

Link copied to clipboard
@SerialName(value = "result_files")
val resultFiles: List<FileId>

The compiled results file ID(s) for the fine-tuning job, retrievable via the Files API.

Link copied to clipboard
@SerialName(value = "status")
val status: Status

The current status of the fine-tuning job (e.g., Status.ValidatingFiles, Status.Queued, etc.).

Link copied to clipboard
@SerialName(value = "trained_tokens")
val trainedTokens: Int? = null

The total number of billable tokens processed by this fine-tuning job, or null if the job is still running.

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

The file ID used for training, retrievable via the Files API.

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

The file ID used for validation, retrievable via the Files API, or null if not available.