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
Choosing the right temperature for Gemini API translation tasks is harder than the docs let on. This guide gives you tested values, side-by-side outputs, and production patterns by use case.
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.