Class ChatCompletion.Choice.Logprobs.Builder
-
- All Implemented Interfaces:
public final class ChatCompletion.Choice.Logprobs.Builder
A builder for Logprobs.
-
-
Method Summary
-
-
Method Detail
-
content
final ChatCompletion.Choice.Logprobs.Builder content(List<ChatCompletionTokenLogprob> content)
A list of message content tokens with log probability information.
-
content
final ChatCompletion.Choice.Logprobs.Builder content(Optional<List<ChatCompletionTokenLogprob>> content)
Alias for calling Builder.content with
content.orElse(null)
.
-
content
final ChatCompletion.Choice.Logprobs.Builder content(JsonField<List<ChatCompletionTokenLogprob>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<ChatCompletionTokenLogprob>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final ChatCompletion.Choice.Logprobs.Builder addContent(ChatCompletionTokenLogprob content)
Adds a single ChatCompletionTokenLogprob to Builder.content.
-
refusal
final ChatCompletion.Choice.Logprobs.Builder refusal(List<ChatCompletionTokenLogprob> refusal)
A list of message refusal tokens with log probability information.
-
refusal
final ChatCompletion.Choice.Logprobs.Builder refusal(Optional<List<ChatCompletionTokenLogprob>> refusal)
Alias for calling Builder.refusal with
refusal.orElse(null)
.
-
refusal
final ChatCompletion.Choice.Logprobs.Builder refusal(JsonField<List<ChatCompletionTokenLogprob>> refusal)
Sets Builder.refusal to an arbitrary JSON value.
You should usually call Builder.refusal with a well-typed
List<ChatCompletionTokenLogprob>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addRefusal
final ChatCompletion.Choice.Logprobs.Builder addRefusal(ChatCompletionTokenLogprob refusal)
Adds a single ChatCompletionTokenLogprob to Builder.refusal.
-
additionalProperties
final ChatCompletion.Choice.Logprobs.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletion.Choice.Logprobs.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletion.Choice.Logprobs.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletion.Choice.Logprobs.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletion.Choice.Logprobs.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletion.Choice.Logprobs build()
Returns an immutable instance of Logprobs.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .refusal()
-
-
-
-