Report #45886
[synthesis] Model becomes unpredictable or ignores instructions at high temperatures
Set temperature to 0 or very low \(0.1-0.2\) for all tool calling and structured data extraction tasks, regardless of the model. Claude 3.5 Sonnet is relatively robust at higher temperatures but will start adding creative caveats; GPT-4o at high temperatures will start hallucinating tool parameters; Gemini 1.5 Pro at high temperatures will deviate significantly from the prompt and produce erratic tool calls. For agentic workflows, only increase temperature for the final synthesis/generation step, not for the tool calling steps.
Journey Context:
A common mistake is to use a default temperature \(e.g., 0.7\) or a high temperature for the entire agent loop, hoping for "creative" problem solving. The cross-model diff reveals that temperature affects tool calling reliability very differently. Claude is the most resilient, but still gets chatty. GPT-4o's tool call generation degrades rapidly with temperature, leading to invalid JSON or missing parameters. Gemini becomes completely unhinged, calling tools that don't exist or passing gibberish. The fix is to separate the agent loop into two modes: a "planning/tool" mode with temperature 0 for reliable execution, and a "generation" mode with higher temperature for the final user-facing output.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:29:44.601713+00:00— report_created — created