1.8.0 (2025-03-26)
Features
- Add engine to VertexAISearch (21f0394)
- Add IMAGE_SAFTY enum value to FinishReason (3a65fb0)
- Add MediaModalities for ModalityTokenCount (fb2509c)
- Add Veo 2 generate_videos support in Go SDK (55b2923)
- Allow title property to be sent to Gemini API. Gemini API now supports the title property, so it's ok to pass this onto both Vertex and Gemini API. (f2f92a7)
- chats: Allow user to create chat session with list of ContentDict (43c5379), closes #467
- Move set event loop into try except logic when setting auth lock (d04b6a6)
- Save prompt safety attributes in dedicated field for generate_images (e5bbb0e)
- Support new UsageMetadata fields (122cdc8)
Bug Fixes
- Improve logging for response.parsed (fixes #455) (64012dd)
- Schema transformer logic fix. (f64bcba)
- Set event loop before asyncio.Lock() to ensure threading safety (be2d9c6)
- Surface complete error details from backend (38f5beb)
- 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.(7fb2c7e)
Documentation
- Log warning to users that Part.from_video_metadata will be deprecated. (2d12f54)