From 53645e00b32e59f7b55877b5331462402774c3f8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 03:11:58 +0000 Subject: [PATCH] chore(main): release 1.0.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 74 +++++++++++++++++++++++++++++++++++ package.json | 2 +- src/util/constants.ts | 2 +- 4 files changed, 77 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2601677b..fea34540 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.0" + ".": "1.0.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6be42e16..cd30bc14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,79 @@ # Changelog +## [1.0.0](https://github.com/Deterty88/nodejs-vertexai/compare/v1.1.0...v1.0.0) (2024-05-18) + + +### Features + +* add countTokens method ([e0265a3](https://github.com/Deterty88/nodejs-vertexai/commit/e0265a36d73b460c66062a0b520b5556d0aa894b)) +* add function calling support ([1deb4e9](https://github.com/Deterty88/nodejs-vertexai/commit/1deb4e920205d2fff6da780175de6045bd853885)) +* add generateContent method ([d7f1f0f](https://github.com/Deterty88/nodejs-vertexai/commit/d7f1f0f66b7bf22c2cb59a8ef698b426cf7e3b8b)) +* add streamGenerateContent method ([6263800](https://github.com/Deterty88/nodejs-vertexai/commit/626380039d7bb2fb9af9219f70ad549950b5f490)) +* Added support for Grounding ([929df39](https://github.com/Deterty88/nodejs-vertexai/commit/929df39f19f423bcfaf35ef113ce04886345a6ab)) +* added userAgent option to RequestOptions to allow setting User-Agent header ([ca43e2f](https://github.com/Deterty88/nodejs-vertexai/commit/ca43e2f0b4ebef60d3739b10a3707cdfe2e2a4ec)) +* allow user to pass "models/model-ID" to instantiate model ([e94b285](https://github.com/Deterty88/nodejs-vertexai/commit/e94b285dac6aaf0c77c6b9c6220b29b8d4aced52)) +* allow users to pass string as system instruction ([a824162](https://github.com/Deterty88/nodejs-vertexai/commit/a824162a29b8c6ba3ccae46c492dd28e9c2baf9c)) +* enable both GA and preview namespaces. ([1c2aca6](https://github.com/Deterty88/nodejs-vertexai/commit/1c2aca6b776784a5b51d1654ffa41dc36f600874)) +* enable inference request to tuned model. ([de9c4c2](https://github.com/Deterty88/nodejs-vertexai/commit/de9c4c2f8c63a298bd28ab69dae9b6a5d72c20d7)) +* enable response style in generation config ([46b0836](https://github.com/Deterty88/nodejs-vertexai/commit/46b0836aa1cefbb5af14b80dd618cda4ac71f62c)) +* enable streamSendMessage for chat. ([598b1dd](https://github.com/Deterty88/nodejs-vertexai/commit/598b1dd7ca8d84c9b32e633a65634abea232f7de)) +* enable system instruction for GenerativeModel ([590ca5a](https://github.com/Deterty88/nodejs-vertexai/commit/590ca5a055e65b493c7d20f3983173dc8a8cbc39)) +* enable system instruction in chat experience ([7e71f75](https://github.com/Deterty88/nodejs-vertexai/commit/7e71f750104cf14f465bb8091f851b5692f5aea9)) +* exposing customHeader in requestOptions to allow users pass in customer headers. ([b47d733](https://github.com/Deterty88/nodejs-vertexai/commit/b47d733680837233b4323f4113737421099df02b)) +* include all supported authentication options ([257355c](https://github.com/Deterty88/nodejs-vertexai/commit/257355ca09ee298623198404a4f889f5cf7788ee)) +* include grounding metadata to stream aggregated response. ([d32755e](https://github.com/Deterty88/nodejs-vertexai/commit/d32755e41ca36a52bfd55dafd45bf5a1a8835b7b)) +* Introduce Request Timeout Configuration ([1b37f40](https://github.com/Deterty88/nodejs-vertexai/commit/1b37f4045f604dac10c91ba800b34c6beadd113a)) +* remove response style in generation config ([87d8b58](https://github.com/Deterty88/nodejs-vertexai/commit/87d8b5853eb7c78ffb2f4a2fffde8c30c147cea1)) +* Support functionCalls property in GenerationContentCandidate interface for non streaming mode ([89568a6](https://github.com/Deterty88/nodejs-vertexai/commit/89568a654550f51ed7e280eb6108f6bdb13e7a92)) +* update grounding metadata ([d3c0a64](https://github.com/Deterty88/nodejs-vertexai/commit/d3c0a647248be6be49b6b93a18aad79c10bae6c4)) + + +### Bug Fixes + +* Add samples link to readme ([3a86e85](https://github.com/Deterty88/nodejs-vertexai/commit/3a86e85de034479818813e563cef6badd68074ab)) +* check optional field in aggregate response ([f7718ae](https://github.com/Deterty88/nodejs-vertexai/commit/f7718aec22f2806bfda18cc75d2ba2c47c929efe)) +* correct CitationMetadata interface. refactor nested function ([722b7fd](https://github.com/Deterty88/nodejs-vertexai/commit/722b7fda23fd03e85b418e71cfacf2206596fc86)) +* correct code snippets in README ([bdcc5fd](https://github.com/Deterty88/nodejs-vertexai/commit/bdcc5fdda9325c37a2efcfc9c00e8cf90fae1f46)) +* correct endpoint string pattern. ([9989acc](https://github.com/Deterty88/nodejs-vertexai/commit/9989acc15c80473fc13a2a99cfdaa46eed3b4723)) +* correct GenerateContentCandidate interface and GenerateContentResponse interface ([7a366ab](https://github.com/Deterty88/nodejs-vertexai/commit/7a366abfc13b87e93bc233e045b8e173ae6357b5)) +* correct sys test logic on stream endpoint for funcion calling ([1fd5b72](https://github.com/Deterty88/nodejs-vertexai/commit/1fd5b725a6537ddca0b93c34be04a4ad8f9f50b6)) +* correct UsageMetadata schema ([10bc676](https://github.com/Deterty88/nodejs-vertexai/commit/10bc67666a64d6ea7dd103c3dae678b8080735c1)) +* decouple dependency between VertexAI_Preivew and GenerativeModel classes ([6762c99](https://github.com/Deterty88/nodejs-vertexai/commit/6762c995bfa1bfdb740ed01a2eb4385126b0e36a)) +* enable passing only a string to generateContent and generateContentStream ([c50811e](https://github.com/Deterty88/nodejs-vertexai/commit/c50811e5443848edb8f9ce5d88ae4c6c8b59b65b)) +* Fix a bug in the Vertex AI client library. ([8ad7dfb](https://github.com/Deterty88/nodejs-vertexai/commit/8ad7dfbd7090868ed89a155aa9519ed220c23451)) +* fix bug in safetyRatings handling, fix incomplete content interfaces, and add unit test for stream response handling ([e573ce6](https://github.com/Deterty88/nodejs-vertexai/commit/e573ce68bda3fabdc75ffbacc56421215cbe2f70)) +* fix bug on blocking streaming in send message ([a675e46](https://github.com/Deterty88/nodejs-vertexai/commit/a675e465dd86249b7e8ce7ff91af1e244bcb827e)) +* fix header ([04a32e6](https://github.com/Deterty88/nodejs-vertexai/commit/04a32e6466ce445e8d76a7dea6b6cc2607b93d3b)) +* fix stream send message content ([ad1e17e](https://github.com/Deterty88/nodejs-vertexai/commit/ad1e17e81c72ce55d395bcae36326d48d595d175)) +* fix system test messages and sendMessageStream test. ([3713903](https://github.com/Deterty88/nodejs-vertexai/commit/37139030a2de798994dbd238d6d27546260fc1f2)) +* fix user agent in header ([8cee1b5](https://github.com/Deterty88/nodejs-vertexai/commit/8cee1b5ae3f69cf81d8fd0e42bcb08c47c7be8a9)) +* for function call, role should be model. ([3b80dc8](https://github.com/Deterty88/nodejs-vertexai/commit/3b80dc86b8c5d1e4be0afe99bca35201fd812abb)) +* functionResponse should be user role ([d092ab4](https://github.com/Deterty88/nodejs-vertexai/commit/d092ab4bb0862fc8471e663a4fb7084b432baf74)) +* include usageMetadata in stream aggregated response ([a1154c9](https://github.com/Deterty88/nodejs-vertexai/commit/a1154c9a91bb5d9cd988a00be4b462ee013fa704)) +* log instead of throw appendHistory errors to avoid unhandled rejection ([2ec9e7d](https://github.com/Deterty88/nodejs-vertexai/commit/2ec9e7d5519af438eb03b9f21f90b86f2575ac47)) +* Make appendHistory private. ([a1bedcd](https://github.com/Deterty88/nodejs-vertexai/commit/a1bedcdb6fe71d73a7601c4fafda699b0b8d1698)) +* pass tools from getGenerativeModel and startChat methods to top level functions ([bbaf78a](https://github.com/Deterty88/nodejs-vertexai/commit/bbaf78a5286ca39074b72bcce7eb7856fe0bec70)) +* pass tools from getGenerativeModel to chatSession. ([907ad74](https://github.com/Deterty88/nodejs-vertexai/commit/907ad74aefe24082607431c34027df6ae6d46a08)) +* processing of streams, including UTF ([63ce032](https://github.com/Deterty88/nodejs-vertexai/commit/63ce032461a32e9e5fdf04d8ce2d4d8628d691b1)) +* remove any type in token signature ([add084c](https://github.com/Deterty88/nodejs-vertexai/commit/add084c6c1657f92a43c102159abceb0b7121b0c)) +* remove defaulting value of candidates in unary api. remove unused variables and imports. remove throwing GoogleAIError when candidates undefined or empty. ([6c0c31c](https://github.com/Deterty88/nodejs-vertexai/commit/6c0c31c2d798f32739fb0d8b647d4289168cc446)) +* remove placeholder cache attribute of access token ([3ec92e7](https://github.com/Deterty88/nodejs-vertexai/commit/3ec92e71a9f7ef4a55bf64037f363ec6be6a729d)) +* replace any type with explicit types in post fetch processing functions ([4099129](https://github.com/Deterty88/nodejs-vertexai/commit/4099129d8497ec39fd1410e3edfc7599f2a91db8)) +* replace snake_case in docs to camelCase ([5893581](https://github.com/Deterty88/nodejs-vertexai/commit/5893581b17b9f1df28410f1315c2fd760acc98b6)) +* safety return types ([449c7a2](https://github.com/Deterty88/nodejs-vertexai/commit/449c7a2af2272add956eb44d8e617878468af344)) +* SDK should be released to 1.0.0 ([4cab5fd](https://github.com/Deterty88/nodejs-vertexai/commit/4cab5fd814bb0c47c98b5be2ed250f5a3765cd6e)) +* Switch NodeJS generateContent to call Unary API endpoint ([e4edb59](https://github.com/Deterty88/nodejs-vertexai/commit/e4edb599863c23a896e263ba2639c80481a65543)) +* throw ClientError or GoogleGenerativeAIError according to response status so that users can catch them and handle them according to class name. ([ea0dcb7](https://github.com/Deterty88/nodejs-vertexai/commit/ea0dcb717be8d22d98916252ccee352e9af4a09f)) +* throw error when GoogleAuthOptions.scopes doesn't include required scope. ([558aee9](https://github.com/Deterty88/nodejs-vertexai/commit/558aee98d76192b4a63b3d28abba3f3d4cda1762)) +* throw more details on error message. ([5dba79c](https://github.com/Deterty88/nodejs-vertexai/commit/5dba79c3648203b9a66b6098f9f1fa0280e6e67d)) +* throws instructive client side error message when bad request happens for function calling ([c90203d](https://github.com/Deterty88/nodejs-vertexai/commit/c90203d153407daa08763c273a827a5e9db54a70)) +* unary api should only need to `await` once. ([67a2e96](https://github.com/Deterty88/nodejs-vertexai/commit/67a2e9649c69a2cf9868a074527efd93d2c800c9)) +* update finish reason enum list to be complete ([f16b2e7](https://github.com/Deterty88/nodejs-vertexai/commit/f16b2e778f1c0d250404928d85f12e775fc0f720)) +* update header field ([eab8841](https://github.com/Deterty88/nodejs-vertexai/commit/eab8841f42679e976d4b1eca8dc083330380daff)) +* update prompt feedback interface ([0d3754a](https://github.com/Deterty88/nodejs-vertexai/commit/0d3754ac7c51b73281342cdb20b22af5918045fa)) +* update readme ([b01bd39](https://github.com/Deterty88/nodejs-vertexai/commit/b01bd391a34f7b7b65d8e267ca169f52f5a48217)) +* update sendMessageStream sys test streamThreshold ([6d7df21](https://github.com/Deterty88/nodejs-vertexai/commit/6d7df21c8488e00d5cf51161269deb55b767d41a)) + ## [1.1.0](https://github.com/googleapis/nodejs-vertexai/compare/v1.0.0...v1.1.0) (2024-04-13) diff --git a/package.json b/package.json index 274cd3b4..ec88428c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/vertexai", "description": "Vertex Generative AI client for Node.js", - "version": "1.1.0", + "version": "1.0.0", "license": "Apache-2.0", "author": "Google LLC", "engines": { diff --git a/src/util/constants.ts b/src/util/constants.ts index 193b3acb..8ce56d1c 100644 --- a/src/util/constants.ts +++ b/src/util/constants.ts @@ -21,7 +21,7 @@ export const USER_ROLE = 'user'; export const MODEL_ROLE = 'model'; export const SYSTEM_ROLE = 'system'; const USER_AGENT_PRODUCT = 'model-builder'; -const CLIENT_LIBRARY_VERSION = '1.1.0'; // x-release-please-version +const CLIENT_LIBRARY_VERSION = '1.0.0'; // x-release-please-version const CLIENT_LIBRARY_LANGUAGE = `grpc-node/${CLIENT_LIBRARY_VERSION}`; export const USER_AGENT = `${USER_AGENT_PRODUCT}/${CLIENT_LIBRARY_VERSION} ${CLIENT_LIBRARY_LANGUAGE}`; export const CREDENTIAL_ERROR_MESSAGE =