Skip to content

Temperature

A sampling parameter that controls randomness: lower values are more focused, higher values more creative.

Use a low temperature (0–0.3) for code, extraction, and factual answers; a higher one (0.7–1.0) for brainstorming and creative writing. It typically ranges from 0 to 2.

Related resources