Record what you send before you try to measure whether temperature still works
Deprecated sampling parameters still return 200 and are silently ignored. Here is how a runtime recorder caught the call sites grep and AST both missed, kept the construction site attached to each config, and turned the ledger into a CI gate.
When Sampling Parameters Were Deprecated, Diversity Broke Before Determinism Did
Deprecating temperature, top_p and top_k hurt the diversity-generating side of my pipeline, not the deterministic side. Counting real call sites, moving diversity to the input layer, and measuring effective diversity.
Why per-turn generationConfig is ignored in Gemini API chat sessions
If you pass a different generationConfig (temperature, max_output_tokens, response_schema) to each send_message in a google-genai chat session and the behavior never changes, this walkthrough shows what is actually happening, why the SDK is designed that way, and three workarounds we use in production for review-summary and reply-draft pipelines.
When Gemini API Output Seems Wrong: 7 Common Causes and a Diagnostic Checklist
When Gemini API returns unexpected output — empty responses, wrong language, broken JSON, or Thinking content leaking into answers — here are 7 common causes with a practical diagnostic checklist and code examples.
Gemini API Best Temperature for Translation Tasks — Optimal Values by Use Case
Tested temperature values for Gemini API translation, plus what comes after picking a number: a profile registry resolved from string keys, a CI check for unassigned strings, a back-translation gate, and display-width budgets that keep translations inside your buttons.
Gemini API Temperature Best Practices by Task — Translation, Summarization, Code, Chat, and More
The `temperature` parameter is one of the highest-leverage knobs in the Gemini API, yet most implementations ship with the default. This guide walks through the value I actually use for each task type — translation, summarization, code generation, chat, classification — and explains why.