1.7.0 (2025-03-18)
Features
- Bump up the websockets version (b996c4b)
- Leverage httpx connection pooling and avoid instantiation of httpx.Client or httpx.AsyncClient for each call (2ac5129)
Bug Fixes
- chats: Fix duplicate history when appending AFC history (e4b1d8a)
- chats: Raise error when
types.Content
is passed tosend_message()
to correctly adhere to type annotation. To migrate code previously passingcontent = types.Content(...)
tosend_message()
, passcontent.parts
instead. - Fix incorrect casing of upload status and url headers in Files API. httpx.Response returns 'x-goog-upload-status', but we were checking for 'X-Goog-Upload-Status'. Also clean up upload_file and download_file requests. (2ac5129)
Documentation
- Use consistent terminology for Gemini Developer API and Vertex AI (7f1cc22)