Class ChatCompletionContentPartImage
-
- All Implemented Interfaces:
public final class ChatCompletionContentPartImageLearn about image inputs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionContentPartImage.BuilderA builder for ChatCompletionContentPartImage.
public final classChatCompletionContentPartImage.ImageUrlpublic final classChatCompletionContentPartImage.PromptCacheBreakpointMarks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
Method Summary
-
-
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).
-
promptCacheBreakpoint
final Optional<ChatCompletionContentPartImage.PromptCacheBreakpoint> promptCacheBreakpoint()
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
_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.
-
_promptCacheBreakpoint
final JsonField<ChatCompletionContentPartImage.PromptCacheBreakpoint> _promptCacheBreakpoint()
Returns the raw JSON value of promptCacheBreakpoint.
Unlike promptCacheBreakpoint, 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()
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.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionContentPartImage.
The following fields are required:
.imageUrl()
-
-
-
-