github googleapis/go-genai v0.6.0

latest releases: v1.65.0, v1.64.0, v1.63.0...
16 months ago

0.6.0 (2025-03-19)

⚠ BREAKING CHANGES

  • support duration type and remove NewPartFromVideoMetadata function
  • Change *time.Time type to time.Time.
  • remove error from the GenerateContentResponse.Text() return values and add more samples(text embedding, tokens, models)
  • change GenerateImageConfig.NumberOfImages to value type. And add clearer error message and docstring to other APIs.
  • Remove default role to "user" for GenerateContent and GenerateContentStream.

Features

  • Add base steps to EditImageConfig (e3c8252)
  • Change *time.Time type to time.Time. (d554a08)
  • change GenerateImageConfig.NumberOfImages to value type. And add clearer error message and docstring to other APIs. (a75a9ae)
  • enable union type for Schema when calling Gemini API. (2edcc55)
  • Remove default role to "user" for GenerateContent and GenerateContentStream. (74d4647)
  • remove error from the GenerateContentResponse.Text() return values and add more samples(text embedding, tokens, models) (1dc5c1c)
  • support duration type and remove NewPartFromVideoMetadata function (b2a13ab)
  • Support global endpoint in go natively (a29b806)
  • Support returned safety attributes for generate_images (cc2bf1a)

Bug Fixes

  • Make month and day optional for PublicationDate. fixes #141 (8a61516)
  • Remove unsupported parameter negative_prompt from Gemini API generate_images (be2619d)

Miscellaneous Chores

Don't miss a new go-genai release

NewReleases is sending notifications on new releases.