---
name: generative-ai-js (deprecated)
slug: generative-ai-js-deprecated
type: github
source_url: https://github.com/google-gemini/deprecated-generative-ai-js
organization: Google
organization_slug: google
total_releases: 31
latest_version: v0.24.1
latest_date: 2025-04-29
last_updated: 2026-10-08
tracking_since: 2024-04-04
canonical: https://releases.sh/google/generative-ai-js-deprecated
organization_url: https://releases.sh/google
---

<Release version="v0.24.1" date="April 29, 2025" published="2025-04-29T17:48:24.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.24.1">
## What's Changed
* Revert "Added Manual workflow to trigger publish (#378)" by @IvanLH in https://github.com/google-gemini/deprecated-generative-ai-js/pull/381
* Fix incorrect command spelling in contribution documentation (#411) by @code-soubhik in https://github.com/google-gemini/deprecated-generative-ai-js/pull/412
* fixed the import statement for the GoogleGenerativeAI module in readme by @julurisaichandu in https://github.com/google-gemini/deprecated-generative-ai-js/pull/408
* Fix Numbering in README.md by @code-soubhik in https://github.com/google-gemini/deprecated-generative-ai-js/pull/397
* Add a GitHub Action to manage `status: awaiting user response` by @amirh in https://github.com/google-gemini/deprecated-generative-ai-js/pull/430
* bugfix of runtime error in the filesCreatePdf function in samples by @julurisaichandu in https://github.com/google-gemini/deprecated-generative-ai-js/pull/418
* update readme with link to new preview-launch js-genai sdk repo by @imperorrp in https://github.com/google-gemini/deprecated-generative-ai-js/pull/437
* fix: After an API error, all subsequent calls fail with the same error by @josejefferson in https://github.com/google-gemini/deprecated-generative-ai-js/pull/420
* chore: Update user-input.yml GitHub workflow to trigger on PR comments by @Annhiluc in https://github.com/google-gemini/deprecated-generative-ai-js/pull/444
* fix: Add missing fs import for file handling by @SGNayak12 in https://github.com/google-gemini/deprecated-generative-ai-js/pull/424
* Update README.md to fix #300. by @dynamicwebpaige in https://github.com/google-gemini/deprecated-generative-ai-js/pull/368
* docs: Update README note pointer to the new TS SDK by @Annhiluc in https://github.com/google-gemini/deprecated-generative-ai-js/pull/447
* Bump koa from 2.15.4 to 2.16.1 by @dependabot in https://github.com/google-gemini/deprecated-generative-ai-js/pull/459
* Add Support Plan for the repository and deprecation timeline. by @pamorgan in https://github.com/google-gemini/deprecated-generative-ai-js/pull/462
* chore: Add changeset for README update by @MarkDaoust in https://github.com/google-gemini/deprecated-generative-ai-js/pull/464
* Version Packages by @MarkDaoust in https://github.com/google-gemini/deprecated-generative-ai-js/pull/467

## New Contributors
* @code-soubhik made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/412
* @julurisaichandu made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/408
* @amirh made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/430
* @imperorrp made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/437
* @josejefferson made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/420
* @Annhiluc made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/444
* @SGNayak12 made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/424
* @dynamicwebpaige made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/368
* @pamorgan made their first contribution in https://github.com/google-gemini/deprecated-generative-ai-js/pull/462

**Full Changelog**: https://github.com/google-gemini/deprecated-generative-ai-js/compare/v0.24.0...v0.24.1
</Release>

<Release version="v0.24.0" date="March 7, 2025" published="2025-03-07T00:05:58.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.24.0">
## What's Changed
* feat (file-manager) support upload with buffer by @hkt74 in https://github.com/google-gemini/generative-ai-js/pull/365
* Adds types which will enforce format rules when using String Schemas by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/369
* Version Packages by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/376
* Added Manual workflow to trigger publish by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/378


**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/v0.23.0...v0.24.0
</Release>

<Release version="v0.23.0" date="March 3, 2025" published="2025-03-03T18:15:09.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.23.0">
## What's Changed
* Improve compat across node versions by @rictic in https://github.com/google-gemini/generative-ai-js/pull/297
* Fix the issues #310 and #309 by @abdelkd in https://github.com/google-gemini/generative-ai-js/pull/311
* Swapped to NPM and ran npm audit fix to fix some dev dependencies which failed the audit. by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/340
* fix typo 'groundingChuncks' -> 'groundingChunks' by @hkt74 in https://github.com/google-gemini/generative-ai-js/pull/342
* Fix job cancellation. by @MarkDaoust in https://github.com/google-gemini/generative-ai-js/pull/344
* Make function calling tests to produce more deterministic  results by @hkt74 in https://github.com/google-gemini/generative-ai-js/pull/343
* Fix typo of 'groundingSupport' -> 'groundingSupports' by @hkt74 in https://github.com/google-gemini/generative-ai-js/pull/348
* Version Packages by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/346
* Adding search tool demo by @Leask in https://github.com/google-gemini/generative-ai-js/pull/318
* Specified the git author for the Release PR by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/350
* Add a new sample for api version by @hkt74 in https://github.com/google-gemini/generative-ai-js/pull/352
* feat(enums.ts): add HARM_CATEGORY_CIVIC_INTEGRITY by @ImBIOS in https://github.com/google-gemini/generative-ai-js/pull/268
* Fix the release github action by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/354
* Add polling getFile for all file upload samples by @hkt74 in https://github.com/google-gemini/generative-ai-js/pull/353
* Changed secret to use the PAT of the bot by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/359
* Fix Issue #218 by ensuring system instructions are always formatted, not just when TTL is specified on Cache creation by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/358
* Added Custom Header capability to the Server package by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/363
* Fix chat history to exclude content with empty parts by @hkt74 in https://github.com/google-gemini/generative-ai-js/pull/362
* Introduce a new error type to represent AbortError by @hkt74 in https://github.com/google-gemini/generative-ai-js/pull/357
* Revert "Changed secret to use the PAT of the bot (#359)" by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/366
* Version Packages by @IvanLH in https://github.com/google-gemini/generative-ai-js/pull/367

## New Contributors
* @abdelkd made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/311
* @IvanLH made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/340
* @hkt74 made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/342
* @MarkDaoust made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/344
* @Leask made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/318
* @ImBIOS made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/268

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/v0.22.0...v0.23.0
</Release>

<Release version="v0.22.0" date="February 20, 2025" published="2025-02-20T21:01:07.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.22.0">
## What's Changed
* Add samples for log prob and search grounding by @junyanxu in https://github.com/google-gemini/generative-ai-js/pull/273
* Update `FinishReason` enum by @stephmilovic in https://github.com/google-gemini/generative-ai-js/pull/270
* Fix samples and update yarn.lock by @dlarocque in https://github.com/google-gemini/generative-ai-js/pull/283
* Fix the issue #124 by @junyanxu in https://github.com/google-gemini/generative-ai-js/pull/290
* Fix the issue #124  (Add the changeset) by @junyanxu in https://github.com/google-gemini/generative-ai-js/pull/293
* Make Schema a discriminated union by @rictic in https://github.com/google-gemini/generative-ai-js/pull/296

## New Contributors
* @stephmilovic made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/270

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/v0.21.0...v0.22.0
</Release>

<Release version="v0.21.0" date="October 2, 2024" published="2024-10-02T22:18:12.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.21.0">
## What's Changed
* Added a files_create_pdf example. by @pcoet in https://github.com/google-gemini/generative-ai-js/pull/263
* Search grounding by @junyanxu in https://github.com/google-gemini/generative-ai-js/pull/271
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/272

## New Contributors
* @pcoet made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/263

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/v0.20.0...v0.21.0
</Release>

<Release version="v0.20.0" date="September 26, 2024" published="2024-09-26T23:39:17.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.20.0">
## What's Changed
* Add frequencePenalty and presencePenalty parameters support for gener… by @junyanxu in https://github.com/google-gemini/generative-ai-js/pull/264
* Add responseLogProbs and logProbs parameters to generateContentReq by @shilpakancharla in https://github.com/google-gemini/generative-ai-js/pull/266
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/265

## New Contributors
* @junyanxu made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/264
* @shilpakancharla made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/266

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/v0.19.0...v0.20.0
</Release>

<Release version="v0.19.0" date="September 12, 2024" published="2024-09-12T16:33:39.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.19.0">
## What's Changed
* Use lowercase SchemaType enum values by @mike-marcacci in https://github.com/google-gemini/generative-ai-js/pull/229
* Bump path-to-regexp from 1.8.0 to 1.9.0 by @dependabot in https://github.com/google-gemini/generative-ai-js/pull/257
* Bump micromatch from 4.0.5 to 4.0.8 by @dependabot in https://github.com/google-gemini/generative-ai-js/pull/237
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/258

## New Contributors
* @mike-marcacci made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/229

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/v0.18.0...v0.19.0
</Release>

<Release version="v0.18.0" date="September 11, 2024" published="2024-09-11T22:01:32.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.18.0">
## What's Changed
* Add TOC to samples dir by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/253
* Add ability to set modelParams on getGenerativeModelFromCachedContent() by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/254
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/256


**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/v0.17.2...v0.18.0
</Release>

<Release version="v0.17.2" date="September 10, 2024" published="2024-09-10T18:27:40.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.17.2">
## What's Changed
* Add condition to skip test if secrets not available by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/233
* Stop hardcoding "python" in text convenience method that returns code execution markdown by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/235
* Update changelog to include 0.16.1 patch by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/248
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/247


**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/v0.17.1...v0.17.2
</Release>

<Release version="@google/generative-ai@0.16.1" date="September 5, 2024" published="2024-09-05T23:28:46.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.16.1">
Patch release for 0.16.x.

## What's Changed
* Fix requestOptions in startChat by @wong2 in https://github.com/google-gemini/generative-ai-js/pull/228

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.16.0...@google/generative-ai@0.16.1
</Release>

<Release version="v0.17.1" date="August 22, 2024" published="2024-08-22T15:53:01.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/v0.17.1">
## What's Changed
* Remove monorepo structure and tooling by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/226
* Add vertex/googleai interface alignment test job by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/225
* Fix requestOptions in startChat by @wong2 in https://github.com/google-gemini/generative-ai-js/pull/228
* Bump @75lb/deep-merge from 1.1.1 to 1.1.2 by @dependabot in https://github.com/google-gemini/generative-ai-js/pull/224
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/232

## New Contributors
* @wong2 made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/228

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.17.0...v0.17.1
</Release>

<Release version="@google/generative-ai@0.17.0" date="August 13, 2024" published="2024-08-13T15:41:09.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.17.0">
## What's Changed
* Add explanatory comment to countTokens samples by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/219
* Fix caution alert in README by @andrewheard in https://github.com/google-gemini/generative-ai-js/pull/220
* Fix Schema type to reference itself in its child properties by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/222
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/223

## New Contributors
* @andrewheard made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/220

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.16.0...@google/generative-ai@0.17.0
</Release>

<Release version="@google/generative-ai@0.16.0" date="July 24, 2024" published="2024-07-24T20:52:06.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.16.0">
## What's Changed
* Remove unavailable property from countTokens sample by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/210
* Fix sample comment describing video/audio processing by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/212
* AbortSignal support by @DellaBitta in https://github.com/google-gemini/generative-ai-js/pull/144
* Update count_tokens samples to show before/after on SI and tools by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/215
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/213


**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.15.0...@google/generative-ai@0.16.0
</Release>

<Release version="@google/generative-ai@0.15.0" date="July 15, 2024" published="2024-07-15T18:29:37.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.15.0">
## What's Changed
* Add canonical textgen samples by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/196
* Add FinishReason.LANGUAGE enum value. by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/198
* Add more samples in standardized format by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/199
* Aligning README with the python one by @Giom-V in https://github.com/google-gemini/generative-ai-js/pull/187
* Add count_tokens sample file by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/203
* Add canonical File API samples by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/204
* Add canonical samples for chat, caching, embeds, and code execution by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/205
* Move node samples to top level, restore web samples by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/206
* Add import comments to all samples by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/207
* Update count_tokens samples by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/208
* Fix count tokens to include model params by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/209
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/202

## New Contributors
* @Giom-V made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/187

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.14.1...@google/generative-ai@0.15.0
</Release>

<Release version="@google/generative-ai@0.14.1" date="July 1, 2024" published="2024-07-01T20:43:55.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.14.1">
## What's Changed
* Add CodeExecutionTool to Tool type by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/191
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/192


**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.14.0...@google/generative-ai@0.14.1
</Release>

<Release version="@google/generative-ai@0.14.0" date="June 27, 2024" published="2024-06-27T02:39:31.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.14.0">
## What's Changed
* Add links to example files in README by @pzaback in https://github.com/google-gemini/generative-ai-js/pull/170
* Bump braces from 3.0.2 to 3.0.3 by @dependabot in https://github.com/google-gemini/generative-ai-js/pull/176
* Add integration tests to Test CI worfklow by @DellaBitta in https://github.com/google-gemini/generative-ai-js/pull/166
* UsageMetadata - add cachedContentTokenCount field by @DellaBitta in https://github.com/google-gemini/generative-ai-js/pull/178
* Add code execution feature by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/185
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/181

## New Contributors
* @pzaback made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/170

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.13.0...@google/generative-ai@0.14.0
</Release>

<Release version="@google/generative-ai@0.13.0" date="June 18, 2024" published="2024-06-18T12:45:14.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.13.0">
## What's Changed
* Add GenerateContentRequest as an optional param to CountTokensRequest by @DellaBitta in https://github.com/google-gemini/generative-ai-js/pull/148
* Remove the model field from the countTokens request payload by @DellaBitta in https://github.com/google-gemini/generative-ai-js/pull/162
* Clean up iTests for CI by @DellaBitta in https://github.com/google-gemini/generative-ai-js/pull/163
* Fix missing usageMetadata in streamed aggregated response (#174) by @jdoucy in https://github.com/google-gemini/generative-ai-js/pull/175
* Add the Content caching feature by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/167
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/161

## New Contributors
* @jdoucy made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/175

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.12.0...@google/generative-ai@0.13.0
</Release>

<Release version="@google/generative-ai@0.12.0" date="May 29, 2024" published="2024-05-29T21:01:19.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.12.0">
## What's Changed
* Add `responseSchema` to `generationConfig` by @lahirumaramba in https://github.com/google-gemini/generative-ai-js/pull/158
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/160

## New Contributors
* @lahirumaramba made their first contribution in https://github.com/google-gemini/generative-ai-js/pull/158

**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.11.5...@google/generative-ai@0.12.0
</Release>

<Release version="@google/generative-ai@0.11.5" date="May 29, 2024" published="2024-05-29T18:02:43.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.11.5">
## What's Changed
* Fix @google/generative-ai/files paths by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/156
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/157


**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.11.4...@google/generative-ai@0.11.5
</Release>

<Release version="@google/generative-ai@0.11.4" date="May 22, 2024" published="2024-05-22T21:01:00.000Z" url="https://github.com/google-gemini/deprecated-generative-ai-js/releases/tag/%40google/generative-ai%400.11.4">
## What's Changed
* Update model names to use gemini-1.5-flash-latest by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/145
* Add additional properties to FileMetadataResponse by @hsubox76 in https://github.com/google-gemini/generative-ai-js/pull/147
* Version Packages by @github-actions in https://github.com/google-gemini/generative-ai-js/pull/149


**Full Changelog**: https://github.com/google-gemini/generative-ai-js/compare/@google/generative-ai@0.11.3...@google/generative-ai@0.11.4
</Release>

<Pagination cursor="2024-05-22T21:01:00.000Z|2026-10-08T12:52:25.236Z|rel_lfHXMMOJBkWqdZmRS70tn" next="https://releases.sh/google/generative-ai-js-deprecated.md?cursor=2024-05-22T21%3A01%3A00.000Z%7C2026-10-08T12%3A52%3A25.236Z%7Crel_lfHXMMOJBkWqdZmRS70tn&limit=20" />
