OpenAIModel

@Serializable
data class OpenAIModel(val id: String, val obj: String = "model", val created: Long, val ownedBy: String, val shutdownDate: String? = null) : Mapper<Model>

OpenAI model object from the GET /models endpoint.

Constructors

Link copied to clipboard
constructor(id: String, obj: String = "model", created: Long, ownedBy: String, shutdownDate: String? = null)

Properties

Link copied to clipboard

Epoch timestamp when the model was created.

Link copied to clipboard
val id: String

The model identifier (e.g. "gpt-5.6-sol").

Link copied to clipboard
@SerialName(value = "object")
val obj: String

Object type (default: "model").

Link copied to clipboard
@SerialName(value = "owned_by")
val ownedBy: String

The organization that owns the model.

Link copied to clipboard
@SerialName(value = "shutdown_date")
val shutdownDate: String?

ISO 8601 date when the model will be shut down. null if not scheduled.

Functions

Link copied to clipboard
open override fun map(): Model
Link copied to clipboard
fun toModel(): Model

Converts this to a provider-agnostic Model.