ImagePart

@Serializable
@SerialName(value = "image_url")
data class ImagePart(val imageUrl: ImagePart.ImageURL) : ContentPart

Image content part.

Parameters

imageUrl

the image url.

Constructors

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

Image content part.

constructor(imageUrl: ImagePart.ImageURL)

Types

Link copied to clipboard
@Serializable
data class ImageURL(val url: String, val detail: String? = null)

Image content part data.

Properties

Link copied to clipboard
@SerialName(value = "image_url")
val imageUrl: ImagePart.ImageURL