0.7.0 (2025-03-31)
⚠ BREAKING CHANGES
- Add error return type to Close() function
- consolidate NewUserContentFrom* and NewModelContentFrom* functions into NewContentFrom* to make API simpler
- Support quota project and migrate ClientConfig.Credential from google.Credentials to auth.Credential type.
- Change caches TTL field to duration type.
- rename ClientError and ServerError to APIError. fixes: #159
Features
- Add Chats module for Go SDK (non-stream only) (e7f75fd)
- Add engine to VertexAISearch (cc2ab5d)
- add IMAGE_SAFTY enum value to FinishReason (cc6081a)
- add MediaModalities for ModalityTokenCount (0969afd)
- Add Veo 2 generate_videos support in Go SDK (5321a25)
- 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. (8f27aba)
- consolidate NewUserContentFrom* and NewModelContentFrom* functions into NewContentFrom* to make API simpler (e8608b1)
- merge GenerationConfig into LiveConnectConfig (96232de)
- rename ClientError and ServerError to APIError. fixes: #159 (12adbfa)
- Save prompt safety attributes in dedicated field for generate_images (eb3cfdc)
- support new UsageMetadata fields (3a56c63)
- Support quota project and migrate ClientConfig.Credential from google.Credentials to auth.Credential type. (74c05fb)
Bug Fixes
- Add error return type to Close() function (673a7f7)
- Change caches TTL field to duration type. (11271b4)
- fix list models API url (036c4d3)
- fix response modality in streaming mode. fixes #163. fixes #158 (996dac3)
- missing zero value bug in setValueByPath. fixes #196 (557c6d8)
- schema transformer logic fix. (8017092)
- use snake_case in embed_content request/response parsing. fixes #174 (ba644e1)
Miscellaneous Chores
- release 0.7.0 (06523b4)