Skip to content

Commit 7578c3f

Browse files
yyyu-googlecopybara-github
authored andcommitted
docs: add deprecation notice to readme for VertexAI class and all its dependencies.
PiperOrigin-RevId: 774939775
1 parent e9abf25 commit 7578c3f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
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

src/vertex_ai.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)