Class ChatCompletionContentPartImage.ImageUrl
-
- All Implemented Interfaces:
public final class ChatCompletionContentPartImage.ImageUrl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionContentPartImage.ImageUrl.BuilderA builder for ImageUrl.
public final classChatCompletionContentPartImage.ImageUrl.DetailSpecifies the detail level of the image. Learn more in the Vision guide.
-
Method Summary
Modifier and Type Method Description final Stringurl()Either a URL of the image or the base64 encoded image data. final Optional<ChatCompletionContentPartImage.ImageUrl.Detail>detail()Specifies the detail level of the image. final JsonField<String>_url()Returns the raw JSON value of url. final JsonField<ChatCompletionContentPartImage.ImageUrl.Detail>_detail()Returns the raw JSON value of detail. final Map<String, JsonValue>_additionalProperties()final ChatCompletionContentPartImage.ImageUrl.BuildertoBuilder()final ChatCompletionContentPartImage.ImageUrlvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionContentPartImage.ImageUrl.Builderbuilder()Returns a mutable builder for constructing an instance of ImageUrl. -
-
Method Detail
-
detail
final Optional<ChatCompletionContentPartImage.ImageUrl.Detail> detail()
Specifies the detail level of the image. Learn more in the Vision guide.
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_detail
final JsonField<ChatCompletionContentPartImage.ImageUrl.Detail> _detail()
Returns the raw JSON value of detail.
Unlike detail, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionContentPartImage.ImageUrl.Builder toBuilder()
-
validate
final ChatCompletionContentPartImage.ImageUrl validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ChatCompletionContentPartImage.ImageUrl.Builder builder()
Returns a mutable builder for constructing an instance of ImageUrl.
The following fields are required:
.url()
-
-
-
-