You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gemini context caching – a long prompt shared by many requests (a document, a codebase, a manual) can now be stored on the server with createCachedContent() and used by any chat through setCachedContent(). Unlike Gemini's automatic cache, which promises no hit, every request then reads that prefix at the price of cached input. The system instruction and tools go into the cache too; deleteCachedContent() drops it before its TTL runs out
RetryClient – repeats a request only when the server cannot have worked on it yet, so a generation is not run twice: a timeout or a dropped connection after sending, an unreadable response or a 502/504 is retried only for a GET. A failure before anything was sent is retried as before and is now reported as RequestNotSentException, a subclass of CommunicationException