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)
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(String text)
The content used for a Predicted Output. This is often the text of a file you are regenerating with minor changes.
-
contentOfArrayOfContentParts
final ChatCompletionPredictionContent.Builder contentOfArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text inputs.
-
type
final ChatCompletionPredictionContent.Builder type(JsonValue type)
The type of the predicted content you want to provide. This type is currently always
content
.
-
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()
-
-
-
-