GEMINI LABJP
SUNSET — Four days until the image models shut down: Imagen 4 and the Gemini 3 Image family stop on August 17, so line up your replacements nowFLASH — Gemini 3.6 Flash is generally available, with better token efficiency and stronger code and agentic planning at a lower price than 3.5 FlashLITE — Gemini 3.5 Flash-Lite also reached GA as a low-latency, cost-conscious subagent option aimed at high-volume automationOMNI — Gemini Omni Flash, a new video model, is now reachable from the Gemini app, Flow, AI Studio, and the Gemini APILOGS — Developer logs now cover the Interactions API, with supported calls visible in the AI Studio dashboardROBOTICS — gemini-robotics-er-1.6-preview shuts down on August 31, so this is the window to plan the migrationSUNSET — Four days until the image models shut down: Imagen 4 and the Gemini 3 Image family stop on August 17, so line up your replacements nowFLASH — Gemini 3.6 Flash is generally available, with better token efficiency and stronger code and agentic planning at a lower price than 3.5 FlashLITE — Gemini 3.5 Flash-Lite also reached GA as a low-latency, cost-conscious subagent option aimed at high-volume automationOMNI — Gemini Omni Flash, a new video model, is now reachable from the Gemini app, Flow, AI Studio, and the Gemini APILOGS — Developer logs now cover the Interactions API, with supported calls visible in the AI Studio dashboardROBOTICS — gemini-robotics-er-1.6-preview shuts down on August 31, so this is the window to plan the migration
TAG

chat

4 articles
Back to all tags
Related:
gemini-api4troubleshooting3python3history1summary1rolling-summary1production1google-genai1generation-config1temperature1function-calling1javascript1
Gemini API/2026-06-22Advanced

Compressing Gemini API Chat History with Rolling Summaries — Designing Chatbots That Survive Hundreds of Turns

When a Gemini chatbot grows long enough, your bills balloon and one day a request hits the token ceiling. The rolling-summary pattern keeps long chats stable.

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-01Intermediate

Why 'contents must alternate between user and model' Won't Go Away in the Gemini API — and How to Fix It

A focused guide to the Gemini API's 'contents must alternate between user and model' error — what really triggers it, why role names from OpenAI break it, and how to fix Function Calling and system_instruction pitfalls with copy-pasteable code.

Gemini API/2026-04-19Intermediate

Gemini API Multi-Turn Chat Breaking: Chat History Management Pitfalls and Fixes

When building multi-turn conversations with the Gemini API, longer chats cause token overflow, slowdowns, and context loss. Learn how to use ChatSession correctly with practical code examples for managing chat history.