Skip to content

Releases: google/generative-ai-go

v0.19.0

04 Dec 14:11
74342dc
Compare
Choose a tag to compare

What's Changed

  • Update prompt in json_no_schema snippet by @pcoet in #210
  • Fix typo in resumable.go by @windmaple in #215
  • genai: fix text of error message by @eliben in #216
  • all: fix license headers and add a check by @jba in #218
  • genai: test invalid text file encoding by @eliben in #224
  • genai: omit empty text parts from session history by @jba in #226
  • genai: add error check to example by @jba in #227
  • genai: add file with 1251 encoding to test error by @eliben in #228
  • genai: fix link to MIME types doc by @jba in #230
  • genai: bump version for v0.19.0 release by @eliben in #235

New Contributors

Full Changelog: v0.18.0...v0.19.0

v0.18.0

09 Sep 15:42
1aa0515
Compare
Choose a tag to compare

What's Changed

  • genai: update comment in one of the samples by @eliben in #195
  • genai: adjust uploadFile comment in examples by @eliben in #189
  • genai: add explicit MIME type CreateCachedContent example by @jba in #199
  • genai: update samples with explicit file upload for video, and comments by @eliben in #200
  • genai: add basic PDF uploading example by @eliben in #202
  • genai: add convenience client.UploadFileFromPath method by @eliben in #203
  • genai: add additional samples by @eliben in #206
  • genai: change all examples to use client.UploadFileFromPath by @eliben in #205
  • genai: additional image and audio samples by @eliben in #207
  • genai: bump version for 0.18 release by @eliben in #209

Full Changelog: v0.17.0...v0.18.0

v0.17.0

19 Jul 21:20
817706e
Compare
Choose a tag to compare

What's Changed

  • Remove unnecessary lines by @kasugamirai in #156
  • genai: fix tool-using example and test by @eliben in #163
  • build(deps): bump google.golang.org/grpc from 1.64.0 to 1.64.1 in the go_modules group by @dependabot in #165
  • genai: move source of truth of example_test and add code generator by @eliben in #164
  • genai: add WithAttribution client option by @jba in #159
  • genai: fix list syntax in doc comment by @eliben in #166
  • genai: switch gen-examples flow to use go:generate by @eliben in #168
  • genai: add more samples for CountTokens by @eliben in #167
  • genai: adjust samples for count tokens by @eliben in #170
  • genai: rename source snippets file to docs-snippets_test.go by @eliben in #171
  • genai: fix end marker in one of the snippets by @eliben in #172
  • genai: factor out uploadFile function for examples by @eliben in #173
  • genai: more text generation samples by @eliben in #175
  • genai: update discovery client and make tests more resilient by @eliben in #176
  • genai: additional content generation examples by @eliben in #177
  • genai: add debug printing of requests by @jba in #178
  • genai: add examples of file upload/list/get by @eliben in #179
  • genai: validate MIME type detection for audio files by @jba in #182
  • genai: improve file upload doc by @jba in #183
  • genai: samples for counting tokens in video by @eliben in #181
  • genai: add uploading audio example, clarify comment in uploadFile by @eliben in #184
  • genai: add samples for caching by @eliben in #186
  • genai: generalize uploadFile in examples and add comment by @eliben in #185
  • Fix region tags: "START [" > "[START " by @MarkDaoust in https://github.com//pull/187
  • genai: add helper function NewUserContent by @eliben in #188
  • genai: add sample for tokens_tools by @eliben in #190
  • Bump version for next release by @eliben in #191

New Contributors

Full Changelog: v0.16.0...v0.17.0

v0.16.0

01 Jul 14:12
@jba jba
6027bb7
Compare
Choose a tag to compare

v0.15.1

28 Jun 14:51
a8cc011
Compare
Choose a tag to compare

What's Changed

  • genai: wrap errors so we can understand where they come from by @eliben in #150
  • genai: make custom HTTP client work again by @eliben in #152
  • genai: prepare to release 0.15.1 by @eliben in #153

Full Changelog: v0.15.0...v0.15.1

v0.15.0

26 Jun 14:39
a4cc90e
Compare
Choose a tag to compare

What's Changed

  • genai: use different model for tests requiring vision by @eliben in #135
  • genai: fix nil pointer converting file metadata by @jba in #137
  • genai: spell name of HTTP client option correctly by @jba in #139
  • genai: get Live tests to pass by @jba in #141
  • genai: remove support package by @jba in #142
  • genai: update Tool example to be more resilient to model differences by @eliben in #146
  • genai: turn conversion panics to errors by @jba in #143
  • genai: improve code generation command by @jba in #144
  • genai: upgrade cloud.google.com/go/ai to v0.7.0 by @jba in #145
  • genai: add content caching by @jba in #147
  • genai: pass cached content in request by @jba in #149
  • genai: bump version for 0.15 release by @eliben in #148

Full Changelog: v0.14.0...v0.15.0

v0.14.0

10 Jun 17:26
9f3bd3b
Compare
Choose a tag to compare

What's Changed

  • genai: expose the merged response from streaming by @jba in #128
  • genai: populate CountTokens request with GenerateContentRequest by @jba in #130
  • genai: add File.Error and File.Metadata by @jba in #131
  • genai: improve some field documentation by @jba in #132

Full Changelog: v0.13.0...v0.14.0

v0.13.0

29 May 12:54
@jba jba
79ad1e8
Compare
Choose a tag to compare

New features:

  • A schema can be provided to control the response output. See the example.
  • File type now has CreateTime, UpdateTime and ExpirationTime.

v0.12.0

10 May 18:31
@jba jba
f69f01d
Compare
Choose a tag to compare

New features:

  • UsageMetadata: information about a model's token usage
  • FileState: information about file uploads
  • GenerationConfig.ResponseSchema (not yet implemented by models)
  • Improved auth logic

v0.11.2

07 May 21:37
56745d1
Compare
Choose a tag to compare
Update the internal version. (#100)

This CL should be followed by tagging the repo v0.11.2.