Turning temperature down
Take your time, follow the code and check your understanding.
The codeLLM API basics
a = client.chat(prompt, temperature=0)
b = client.chat(prompt, temperature=1)
# Which statement is the safest to rely on?Your answer4 min · no timer
Show solution and explanation
Lower temperature reduces randomness in token sampling, so replies vary less. Hosted models can still change between calls or versions, so do not treat it as a guarantee.
temperature 0 makes the model slightly more deterministic, but identical output is not guaranteed.