Class ChatCompletionContentPartImage
-
- All Implemented Interfaces:
public final class ChatCompletionContentPartImage
Learn about image inputs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionContentPartImage.Builder
A builder for ChatCompletionContentPartImage.
public final class
ChatCompletionContentPartImage.ImageUrl
-
Method Summary
Modifier and Type Method Description final ChatCompletionContentPartImage.ImageUrl
imageUrl()
final JsonValue
_type()
The type of the content part. final JsonField<ChatCompletionContentPartImage.ImageUrl>
_imageUrl()
Returns the raw JSON value of imageUrl. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionContentPartImage.Builder
toBuilder()
final ChatCompletionContentPartImage
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionContentPartImage.Builder
builder()
Returns a mutable builder for constructing an instance of ChatCompletionContentPartImage. -
-
Method Detail
-
imageUrl
final ChatCompletionContentPartImage.ImageUrl imageUrl()
-
_type
final JsonValue _type()
The type of the content part.
Expected to always return the following:
JsonValue.from("image_url")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_imageUrl
final JsonField<ChatCompletionContentPartImage.ImageUrl> _imageUrl()
Returns the raw JSON value of imageUrl.
Unlike imageUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionContentPartImage.Builder toBuilder()
-
validate
final ChatCompletionContentPartImage validate()
-
builder
final static ChatCompletionContentPartImage.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionContentPartImage.
The following fields are required:
.imageUrl()
-
-
-
-