github.com/google/generative-ai-go
v0.20.1
#2642 most downloaded on Go modules
google/generative-ai-go
What this package is like to depend on
Last release 1 years ago
08 Aug 2025
Release timing varies
gaps range from 8 days to 4 months
Some releases are documented
notes for 10 of 24 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
106 releases · first in 2023
0 releases in the last 12 months
see the full history below
Release timeline
106 releases · Dec 2023 to Aug 2025Releases
latest 60 of 106-
v0.20.2-0.20250808182502-b1a1f5eba2c108 Aug 2025 pre-releaseNothing published for this version
-
v0.20.2-0.20250611181635-eb5dc0cace4611 Jun 2025 pre-releaseNothing published for this version
-
v0.20.102 May 2025 -
v0.20.001 May 2025Release notes
Open source →What's Changed
- Added Deprecation tags to README and doc.go
- fix: change in string for condition check by @VadirajKranam in #232
- build(deps): bump golang.org/x/crypto from 0.24.0 to 0.31.0 in the go_modules group by @dependabot in #236
New Contributors
- @VadirajKranam made their first contribution in #232
- @amirh made their first contribution in #251
- @Annhiluc made their first contribution in #255
Full Changelog: v0.19.0...v0.19.1
-
v0.19.1-0.20250327001804-1a2951b1bd5e27 Mar 2025 pre-releaseNothing published for this version
-
v0.19.1-0.20250325002804-07a42c01a02825 Mar 2025 pre-releaseNothing published for this version
-
v0.19.1-0.20241212031612-7276bbc8524c12 Dec 2024 pre-releaseNothing published for this version
-
v0.19.1-0.20241204165116-3d14f4039eae04 Dec 2024 pre-releaseNothing published for this version
-
v0.19.004 Dec 2024Release notes
Open source →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
- @pcoet made their first contribution in #210
- @windmaple made their first contribution in #215
Full Changelog: v0.18.0...v0.19.0
-
v0.18.1-0.20241125174948-274f56b82ee225 Nov 2024 pre-releaseNothing published for this version
-
v0.18.1-0.20241125140048-0633561f000525 Nov 2024 pre-releaseNothing published for this version
-
v0.18.1-0.20241118200222-f453d2d6ca8c18 Nov 2024 pre-releaseNothing published for this version
-
v0.18.1-0.20241118200157-30b5de5ce55418 Nov 2024 pre-releaseNothing published for this version
-
v0.18.1-0.20241008182425-6d5822849cf608 Oct 2024 pre-releaseNothing published for this version
-
v0.18.1-0.20241007140418-e7499d1507df07 Oct 2024 pre-releaseNothing published for this version
-
v0.18.1-0.20241004135859-10463915ed5404 Oct 2024 pre-releaseNothing published for this version
-
v0.18.1-0.20240912140342-2ec7e23d0c9212 Sep 2024 pre-releaseNothing published for this version
-
v0.18.009 Sep 2024Release notes
Open source →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.1-0.20240807122618-32bb384db7f007 Aug 2024 pre-releaseNothing published for this version
-
v0.17.1-0.20240806225835-4a62952a027106 Aug 2024 pre-releaseNothing published for this version
-
v0.17.1-0.20240805134833-7d222a05691a05 Aug 2024 pre-releaseNothing published for this version
-
v0.17.1-0.20240802214855-fb56fc26279802 Aug 2024 pre-releaseNothing published for this version
-
v0.17.1-0.20240730170216-361f1cee526330 Jul 2024 pre-releaseNothing published for this version
-
v0.17.1-0.20240726133941-2bfb559f3eef26 Jul 2024 pre-releaseNothing published for this version
-
v0.17.1-0.20240723140812-a0252ef7d8cc23 Jul 2024 pre-releaseNothing published for this version
-
v0.17.019 Jul 2024Release notes
Open source →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
- @MarkDaoust made their first contribution in #187
Full Changelog: v0.16.0...v0.17.0
-
v0.16.1-0.20240718200541-0fdd3600fe7318 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240716171353-cc3dd1f767ea16 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240715165324-71888e71fed415 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240713204152-608d3299431b13 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240712223922-b48f58ac50fe12 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240712172517-07009580144e12 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240711234226-3d279eb8579511 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240711222609-09946422abc611 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240711011716-07bb9dca3e3d11 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240709221344-cf09b4f4057709 Jul 2024 pre-releaseNothing published for this version
-
v0.16.1-0.20240701180422-f043fb2ce8e501 Jul 2024 pre-releaseNothing published for this version
-
v0.16.001 Jul 2024 -
v0.15.128 Jun 2024Release notes
Open source →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.1-0.20240627181618-8e25c3992be027 Jun 2024 pre-releaseNothing published for this version
-
v0.15.026 Jun 2024Release notes
Open source →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.1-0.20240625173000-147c8a54a2ea25 Jun 2024 pre-releaseNothing published for this version
-
v0.14.1-0.20240624134520-761f4d9d3c6124 Jun 2024 pre-releaseNothing published for this version
-
v0.14.1-0.20240623174350-bffd28bb15f423 Jun 2024 pre-releaseNothing published for this version
-
v0.14.1-0.20240623174147-26ef0cd0d82b23 Jun 2024 pre-releaseNothing published for this version
-
v0.14.1-0.20240618073058-6b2b0ac5749e18 Jun 2024 pre-releaseNothing published for this version
-
v0.14.1-0.20240611122955-5c40193a982f11 Jun 2024 pre-releaseNothing published for this version
-
v0.14.1-0.20240610220030-07538e582a6310 Jun 2024 pre-releaseNothing published for this version
-
v0.14.010 Jun 2024Release notes
Open source →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.1-0.20240609170022-d138bb95a24e09 Jun 2024 pre-releaseNothing published for this version
-
v0.13.1-0.20240530125111-8decc9df4add30 May 2024 pre-releaseNothing published for this version
-
v0.13.1-0.20240529155535-314f183fe20429 May 2024 pre-releaseNothing published for this version
-
v0.13.029 May 2024Release notes
Open source →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.1-0.20240526115947-665f6f7b9acc26 May 2024 pre-releaseNothing published for this version
-
v0.12.1-0.20240521212131-a8c05d5d31bc21 May 2024 pre-releaseNothing published for this version
-
v0.12.1-0.20240514173057-88fcdb1373d214 May 2024 pre-releaseNothing published for this version
-
v0.12.1-0.20240510185812-badcf7fcf86710 May 2024 pre-releaseNothing published for this version
-
v0.12.1-0.20240510182736-9748c0281eff10 May 2024 pre-releaseNothing published for this version
-
v0.12.010 May 2024Nothing published for this version
-
v0.11.3-0.20240508191304-e973ba747aaa08 May 2024 pre-releaseNothing published for this version