temperature

public final GenerationConfig.Builder temperature(Float temperature)

Controls the randomness of the output.


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

Sets Builder.temperature to an arbitrary JSON value.

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