Class ChatCompletionPredictionContent.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionPredictionContent.Builder
A builder for ChatCompletionPredictionContent.
-
-
Method Summary
-
-
Method Detail
-
content
final ChatCompletionPredictionContent.Builder content(ChatCompletionPredictionContent.Content content)
The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
-
content
final ChatCompletionPredictionContent.Builder content(JsonField<ChatCompletionPredictionContent.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final ChatCompletionPredictionContent.Builder content(String text)
Alias for calling content with
Content.ofText(text)
.
-
contentOfArrayOfContentParts
final ChatCompletionPredictionContent.Builder contentOfArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
Alias for calling content with
Content.ofArrayOfContentParts(arrayOfContentParts)
.
-
type
final ChatCompletionPredictionContent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("content")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionPredictionContent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionPredictionContent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionPredictionContent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionPredictionContent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionPredictionContent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionPredictionContent build()
Returns an immutable instance of ChatCompletionPredictionContent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content()
-
-
-
-