1.22.0 (2025-06-25)
Features
- Add compressionQuality enum for generate_videos (b132387)
- Add enhance_input_image and image_preservation_factor fields for upscale_image (cdcd4f5)
- Allow users to access headers for generateContent method and generateContentStream (80c8964)
- Expose the responseJsonSchema in GenerateContentConfig (714452f)
- Improve repr for pydantic objects. (80ab054)
- Support Batches create/get/list/cancel in Gemini Developer API (5ab8a56)
- Support IntEnums when processing JSON schemas (6cc2bdb)
Bug Fixes
- Keep chunk content history when thought summaries are enabled in the stream response (91e7246)
- The send_client_content function with Blob input. (8491e4c)