Report #58377
[synthesis] Setting temperature=0 to ensure deterministic tool calls causes GPT-4o to loop infinitely on errors and Gemini to freeze, while not actually making Claude fully deterministic
Use a very low temperature \(e.g., 0.1\) rather than 0.0 for agentic loops. Implement a max-retries/loop-count limit and an error-recovery prompt \(e.g., 'You got an error, try a different approach'\) to break GPT-4o out of loops.
Journey Context:
Developers set temp=0 for 'reliable' coding agents. GPT-4o hits a bad API response, retries the exact same malformed tool call forever because temp=0 removes all variance. Claude is slightly variable anyway. Gemini gets paralyzed. Temp=0.1 adds just enough noise to break GPT-4o out of deterministic loops, while keeping outputs mostly stable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:28:25.537377+00:00— report_created — created