File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11[ ![ NPM Downloads] ( https://img.shields.io/npm/dm/%40google-cloud%2Fvertexai )] ( https://www.npmjs.com/package/@google-cloud/vertexai )
22[ ![ Node Current] ( https://img.shields.io/node/v/%40google-cloud%2Fvertexai )] ( https://www.npmjs.com/package/@google-cloud/vertexai )
33
4- > [ !NOTE] A new Javascript/Typescript SDK, ` @google/genai `
5- > ([ github] ( https://github.com/googleapis/js-genai/tree/main ) ), is currently
6- > available in a * experimental preview launch* - designed to work with Gemini
7- > 2.0 features. and support both the Gemini API and the Vertex API.
4+ > [ !NOTE] The ` VertexAI ` class and all its dependencies in the Vertex AI SDK are
5+ > deprecated as of June 24, 2025 and will be removed on June 24, 2026. Please
6+ > use the [ Google Gen AI SDK] ( https://www.npmjs.com/package/@google/genai ) to
7+ > access Gemini features. See
8+ > [ the migration guide] ( https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk )
9+ > for details.
810
911# Vertex AI SDK for Node.js quickstart
1012
Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ export class VertexAI {
6060 init . project ,
6161 init . googleAuthOptions
6262 ) ;
63+ console . warn (
64+ 'The VertexAI class and all its dependencies are deprecated' +
65+ ' as of June 24, 2025 and will be removed on June 24, 2026. Please use' +
66+ ' the Google Gen AI SDK (https://www.npmjs.com/package/@google/genai) to' +
67+ ' access Gemini features. For details, see' +
68+ ' https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk.'
69+ ) ;
6370 this . location = resolveLocation ( init . location ) ;
6471 this . project = resolveProject ( init . project ) ;
6572 this . googleAuth = new GoogleAuth ( opts ) ;
You can’t perform that action at this time.
0 commit comments