Skip to content

v1.0.1

Choose a tag to compare

@hosseinhezami hosseinhezami released this 21 Oct 14:00
· 9 commits to master since this release

feat(caching): integrate Gemini API caching support

This introduces full support for cached contents to optimize generation requests:

  • New CacheBuilder class with methods for managing caches (create, list, get, update expiration, delete).
  • Chainable caching in BaseBuilder: cache() from params, getCache() for details, and cachedContent() for usage in builders.
  • GeminiProvider enhancements: new methods for caching operations; HttpClient updated for PATCH/DELETE.
  • CacheResponse class with accessors;
  • Config additions for default TTL/page size; Facade and Provider registrations.
  • Comprehensive README updates with independent and integrated usage examples.

No breaking changes; backward-compatible with existing features.