1
Fork 0
mirror of https://github.com/RGBCube/chatgpt.v synced 2025-07-27 08:47:44 +00:00

Add default for temprature

This commit is contained in:
RGBCube 2023-01-13 23:03:20 +03:00 committed by GitHub
parent 0360564bb8
commit 19e17f02c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ pub struct GenerationConfig {
// generating text. A higher temperature will produce more varied and
// creative completions, while a lower temperature will produce more
// predictable and repetitive completions.
temperature f32 // Min: 0, Max: 2.
temperature f32 = 0.7 // Min: 0, Max: 2.
// This parameter is used to specify the fraction of the mass of the
// distribution to keep when selecting the next token. For example,
// if you set top_p to 0.5, ChatGPT will only consider the tokens