Asked about Parameters that change the output

What does temperature do?

An answer that works

It scales the probability distribution before a token is sampled. Low values concentrate probability on the most likely token, high values spread it out. It can only produce variety where the model was already uncertain.

Reading an answer is not being able to give one. The section that teaches this is Parameters that change the output, 2 hours of The Messages API.

Learn this properly