topP

public final GenerationConfig.Builder topP(Float topP)

The maximum cumulative probability of tokens to consider when sampling.


public final GenerationConfig.Builder topP(JsonField<Float> topP)

Sets Builder.topP to an arbitrary JSON value.

You should usually call Builder.topP with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.