Class ChatCompletionCreateParams.LogitBias
-
- All Implemented Interfaces:
public final class ChatCompletionCreateParams.LogitBiasModify the likelihood of specified tokens appearing in the completion.
Accepts a JSON object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionCreateParams.LogitBias.BuilderA builder for LogitBias.
-
Method Summary
Modifier and Type Method Description final Map<String, JsonValue>_additionalProperties()final ChatCompletionCreateParams.LogitBias.BuildertoBuilder()final ChatCompletionCreateParams.LogitBiasvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionCreateParams.LogitBias.Builderbuilder()Returns a mutable builder for constructing an instance of LogitBias. -
-
Method Detail
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionCreateParams.LogitBias.Builder toBuilder()
-
validate
final ChatCompletionCreateParams.LogitBias validate()
-
builder
final static ChatCompletionCreateParams.LogitBias.Builder builder()
Returns a mutable builder for constructing an instance of LogitBias.
-
-
-
-