Skip to content

Commit 672c6bf

Browse files
Version Packages
1 parent 3004d3b commit 672c6bf

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

.changeset/funny-paws-visit.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/good-beans-cheat.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/young-rivers-shout.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @google/generative-ai
22

3+
## 0.22.0
4+
5+
### Minor Changes
6+
7+
- 3004d3b: The schema types are now more specific, using a [discriminated union](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions) based on the 'type' field to more accurately define which fields are allowed.
8+
9+
### Patch Changes
10+
11+
- 6a99ed8: Make sure chat api do not send empty text request after encounter any server error that returns empty response. This fixes issue #124 and issue #286.
12+
- 25d3a92: update FinishReason enum
13+
314
## 0.21.0
415

516
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google/generative-ai",
3-
"version": "0.21.0",
3+
"version": "0.22.0",
44
"description": "Google AI JavaScript SDK",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

0 commit comments

Comments
 (0)