temperature property

double? temperature
final

Optional. Controls the randomness of the output.

Values can range from 0.0,1.0, inclusive. A value closer to 1.0 will produce responses that are more varied and creative, while a value closer to 0.0 will typically result in more straightforward responses from the model. A low temperature (~0.2) is usually recommended for Attributed-Question-Answering use cases.

Implementation

final double? temperature;