github googleapis/go-genai v1.0.0

latest releases: v1.62.0, v1.61.0, v1.60.0...
14 months ago

1.0.0 (2025-04-09)

⚠ BREAKING CHANGES

  • Support SendClientContent/SendRealtimeInput/SendToolResponse methods in Session struct and remove Send method
  • Merge GenerationConfig to LiveConnectConfig. GenerationConfig is removed.
  • Change NewContentFrom... functions role param type from string to Role and miscs docstring improvements
  • Change some pointer to value type and value to pointer type

Features

  • Add domain to Web GroundingChunk (183ac49)
  • Add generationComplete notification to Live ServerContent (9a038b9)
  • Add session resumption to Live module (4a92461)
  • add session resumption. (507137b)
  • Add support for Chats streaming in Go SDK (9ee0523)
  • Add thinking_budget to ThinkingConfig for Gemini Thinking Models (f811ee4)
  • Add traffic type to GenerateContentResponseUsageMetadata (601add2)
  • Add types for configurable speech detection (f4e1b11)
  • Add types to support continuous sessions with a sliding window (5d4f5d7)
  • Add UsageMetadata to LiveServerMessage (4286c6b)
  • expose generation_complete, input/output_transcription & input/output_audio_transcription to SDK for Vertex Live API (0dbbc82)
  • Merge GenerationConfig to LiveConnectConfig. GenerationConfig is removed. (65b7c1c)
  • Remove experimental warnings for generate_videos and operations (2e4bb0b)
  • Support files delete, get, list, download/ (8e7b3fd)
  • Support files upload method (ce790dd)
  • support media resolution (825c81d)
  • Support SendClientContent/SendRealtimeInput/SendToolResponse methods in Session struct and remove Send method (c8ecaf4)
  • use io.Reader in Upload function and add a new convenience function UploadFromPath. fixes #222 (1c064e3)

Bug Fixes

  • Change NewContentFrom... functions role param type from string to Role and miscs docstring improvements (7810e07)
  • Change some pointer to value type and value to pointer type (0d2ba97)
  • fix Add() dead loop (afa2324)
  • Fix failing chat_test (aebbdaa)

Don't miss a new go-genai release

NewReleases is sending notifications on new releases.