Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ErrorInfo(val message: String? = null, val code: String? = null, val param: String? = null)

For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.

Link copied to clipboard
@Serializable
value class FineTuningId(val id: String)

Fine-tuning identifier.

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
data class FineTuningJobEvent(val id: String, val createdAt: Int, val level: Level, val message: String)

Data class representing a fine-tuning job event.

Link copied to clipboard
@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.

Link copied to clipboard

Builder of FineTuningRequest instances.

Link copied to clipboard
@Serializable
data class Hyperparameters(val nEpochs: Hyperparameters.NEpochs)

A data class representing hyperparameters used during the fine-tuning of a model.

Link copied to clipboard
@Serializable
value class Level(val value: String)

Represents the severity level of a fine-tuning job event.

Functions

Link copied to clipboard

Create a Fine-Tuning request.