ImageUrl

@Serializable
class ImageUrl(val url: String, val detail: ImageDetail? = null)

Location of an image referenced by an ImageUrlPart.

Constructors

Link copied to clipboard
constructor(url: String, detail: ImageDetail? = null)

Properties

Link copied to clipboard

How much of the image's resolution reaches the model; defaults to the API's own choice when left unset.

Link copied to clipboard
val url: String

Either an http(s) link the API fetches, or a base64 data URL that inlines the image (data:image/jpeg;base64,...). JPEG, PNG, GIF and WebP are supported.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String