---
title: "Discussion on \"Day 05: Temperature, top-p, and the myth of creative settings\" | Hashnode"
description: "Discussion on \"Day 05: Temperature, top-p, and the myth of creative settings\". Same file, same prompt, temperature pinned at zero, three runs. All three failed the same way: three repair attempts each, every one reporting that the reply was not JSON.\nIt was not bad JSON. It was"
url: "https://hashnode.com/posts/temperature-and-the-creativity-myth/6b094bc768bb68ca69b61c8d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Day 05: Temperature, top-p, and the myth of creative settings](https://harshakatkam.dev/temperature-and-the-creativity-myth?utm_source=hashnode&utm_medium=feed)

Same file, same prompt, temperature pinned at zero, three runs. All three failed the same way: three repair attempts each, every one reporting that the reply was not JSON. It was not bad JSON. It was

9h ago · 9 min read · harshakatkam.dev  
Read the article

-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#python](https://hashnode.com/tag/python)
-   [#llm](https://hashnode.com/tag/llm)
-   [#ai](https://hashnode.com/tag/ai)
-   [#agentic-ai](https://hashnode.com/tag/agentic-ai)

## Written by

[Harshavardhan Katkam](https://hashnode.com/@harshakatkam)

@harshakatkam · Hyderabad, India

  
[View profile](https://hashnode.com/@harshakatkam)

Senior Backend Engineer | Java | Distributed Systems | GenAI & AI Agents

## Responses 3

Markdown supported · ⌘↵ to post

[Mamad Mirza](https://hashnode.com/@mamadmirza)

[3h ago](https://hashnode.com/posts/temperature-and-the-creativity-myth/6b094bc768bb68ca69b61c8d/comment/6b09a666c4bb69ec0aedda52)

The truncation story is the one I keep coming back to — a reasoning model burning its whole budget thinking and never writing a character looks identical to a wrong answer from the outside, and I bet most people debug it as a prompt problem. The finish-reason log Osama mentions is the cheapest guard here. And the repeat harness is the real takeaway: stop arguing about determinism and measure agreement instead. That's the part I'll steal for my own agent builds.

[Osama Malik](https://hashnode.com/@osamamalik)

[6h ago](https://hashnode.com/posts/temperature-and-the-creativity-myth/6b094bc768bb68ca69b61c8d/comment/6b09817b1296313886cf62dc)

The truncation story is a useful one. A cheap guard is to log the finish reason on every response and treat a value of length as its own failure class, separate from invalid output, so you never feed it into repair attempts. Most providers also report reasoning tokens in the usage details, which lets you see how much of the budget thinking consumed and set a larger output limit for those calls instead of retrying the same request.

[Salman Parvez | ML Systems](https://hashnode.com/@ml-systems)

[7h ago](https://hashnode.com/posts/temperature-and-the-creativity-myth/6b094bc768bb68ca69b61c8d/comment/6b0965e62e9d212c44680777)

"From the outside, an answer that never arrived looks exactly like a wrong one" is the line I'd keep. In estimating, a blank line item and a zero look the same on the summary sheet, and they mean very different things: one was priced at nothing and the other was never priced. Keeping max\_tokens next to temperature so a cut-off reply can't pass as bad JSON is the same fix as marking a line "not priced" on purpose. Sending the defaults explicitly is writing the code edition on the cover sheet, because nobody tells you when the default moves. I direct agents as a Language Modeler, and measuring agreement across runs is closer to how I'd check a takeoff than trusting a setting: count it more than once and look at what moved.
