What does "temperature" control?
BeginnerConceptLLM fundamentals
Answer
Temperature controls randomness when the model picks the next token. Low values (0–0.3) make output focused and repeatable, which suits code, extraction and classification. Higher values (0.7–1.0) make output more varied, which suits brainstorming and creative writing. For agents that call tools, keep it low so behaviour is predictable.