◉GEMINI LABJP
●ARGON — gemini-4-argon is generally available as of 10/13, aimed at complex coding, agents, math and science●DEEP RES — deep-research-pro-preview-12-2025 shuts down 10/23, 6 days left. Move to deep-research-preview-04-2026●NANO — gemini-nano-banana-2.1 is GA (10/06). gemini-3.1-flash-image is deprecated with no shutdown date yet●MCP — One write-up cut an 85,000-token tool result to 310 tokens by wrapping it in an ADK FunctionTool●FLASH — gemini-3.7-flash and 3.5-flash now route automatically to newer Flash models (10/08)●NEW — Stop Re-Reading Every Crash Report: Gre…●ARGON — gemini-4-argon is generally available as of 10/13, aimed at complex coding, agents, math and science●DEEP RES — deep-research-pro-preview-12-2025 shuts down 10/23, 6 days left. Move to deep-research-preview-04-2026●NANO — gemini-nano-banana-2.1 is GA (10/06). gemini-3.1-flash-image is deprecated with no shutdown date yet●MCP — One write-up cut an 85,000-token tool result to 310 tokens by wrapping it in an ADK FunctionTool●FLASH — gemini-3.7-flash and 3.5-flash now route automatically to newer Flash models (10/08)●NEW — Stop Re-Reading Every Crash Report: Gre…
TAG

temperature

6 articles
← Back to all tags
Related:
Gemini API5troubleshooting2Prompt Engineering2deprecation1CI1indie development1migration1cost design1gemini-api1google-genai1chat1python1
◈ Gemini API/2026-08-27Intermediate

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.

◈ Gemini API/2026-08-01Advanced

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.

◈ Gemini API/2026-05-28Intermediate

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.

◈ Gemini API/2026-05-05Intermediate

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/2026-04-29Intermediate

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/2026-04-26Intermediate

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.