Gemini API now lets you change system instructions mid-conversation, cache intact

OnlineInference · x · 2026-12-04

Google announced a new Gemini API capability: developers can update system instructions and tools mid-conversation while preserving the prompt cache. Previously, changing the system prompt would invalidate the cache and increase costs — this enables dynamically adjusting instructions and tools during long conversations without sacrificing cache savings.

Original post →

More from coding & agent

coding & agent channel →