Kory
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kory
openai
/
io.kory.openai.completions.message.content
/
OpenAIChatCompletionContentPart
/
Image
Image
@
SerialName
(
value
=
"image_url"
)
@
Serializable
data
class
Image
(
val
imageUrl
:
OpenAIImageUrl
,
val
detail
:
OpenAIDetail
?
=
null
)
:
OpenAIChatCompletionContentPart
,
Mapper
<
ContentPart
>
An image content part.
Members
Constructors
Image
Link copied to clipboard
constructor
(
imageUrl
:
OpenAIImageUrl
,
detail
:
OpenAIDetail
?
=
null
)
Properties
detail
Link copied to clipboard
@
SerialName
(
value
=
"detail"
)
val
detail
:
OpenAIDetail
?
image
Url
Link copied to clipboard
@
SerialName
(
value
=
"image_url"
)
val
imageUrl
:
OpenAIImageUrl
The image URL wrapper.
Functions
map
Link copied to clipboard
open
override
fun
map
(
)
:
ContentPart
to
Content
Part
Link copied to clipboard
open
override
fun
toContentPart
(
)
:
ContentPart
Converts this to a core
ContentPart
.