You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ We recommend using our Code Generation instructions [`codegen_instructions.md`](
29
29
30
30
1. Node.js version 20 or later
31
31
32
-
### The following are required for Vertex AI users (excluding Vertex AI Studio)
32
+
### The following are required for Gemini Enterprise Agent Platform users (excluding Vertex AI Studio)
33
33
1.[Select](https://console.cloud.google.com/project) or [create](https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project) a Google Cloud project.
34
34
1.[Enable billing for your project](https://cloud.google.com/billing/docs/how-to/modify-project).
35
35
1.[Enable the Vertex AI API](https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com).
@@ -77,7 +77,7 @@ main();
77
77
78
78
The Google Gen AI SDK provides support for both the
79
79
[Google AI Studio](https://ai.google.dev/gemini-api/docs) and
@@ -122,19 +122,19 @@ const ai = new GoogleGenAI({
122
122
123
123
For NodeJS environments, you can create a client by configuring the necessary
124
124
environment variables. Configuration setup instructions depends on whether
125
-
you're using the Gemini Developer API or the Gemini API in Vertex AI.
125
+
you're using the Gemini Developer API or the Gemini Enterprise Agent Platform.
126
126
127
127
**Gemini Developer API:** Set `GOOGLE_API_KEY` as shown below:
128
128
129
129
```bash
130
130
export GOOGLE_API_KEY='your-api-key'
131
131
```
132
132
133
-
**Gemini API on Vertex AI:** Set `GOOGLE_GENAI_USE_VERTEXAI`,
133
+
**Gemini Enterprise Agent Platform:** Set `GOOGLE_GENAI_USE_ENTERPRISE`,
134
134
`GOOGLE_CLOUD_PROJECT` and `GOOGLE_CLOUD_LOCATION`, as shown below:
135
135
136
136
```bash
137
-
export GOOGLE_GENAI_USE_VERTEXAI=true
137
+
export GOOGLE_GENAI_USE_ENTERPRISE=true
138
138
export GOOGLE_CLOUD_PROJECT='your-project-id'
139
139
export GOOGLE_CLOUD_LOCATION='us-central1'
140
140
```
@@ -152,11 +152,11 @@ preview features in the APIs. The stable API endpoints can be selected by
152
152
setting the API version to `v1`.
153
153
154
154
To set the API version use `apiVersion`. For example, to set the API version to
155
-
`v1` for Vertex AI:
155
+
`v1` for Gemini Enterprise Agent Platform:
156
156
157
157
```typescript
158
158
const ai = new GoogleGenAI({
159
-
vertexai: true,
159
+
enterprise: true,
160
160
project: 'your_project',
161
161
location: 'your_location',
162
162
apiVersion: 'v1'
@@ -600,7 +600,7 @@ for (const output of interaction.outputs!) {
600
600
This SDK (`@google/genai`) is Google Deepmind’s "vanilla" SDK for its generative
601
601
AI offerings, and is where Google Deepmind adds new AI features.
602
602
603
-
Models hosted either on the [Vertex AI platform](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview) or the [Gemini Developer platform](https://ai.google.dev/gemini-api/docs) are accessible through this SDK.
603
+
Models hosted either on the [Gemini Enterprise Agent Platform](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview) or the [Gemini Developer platform](https://ai.google.dev/gemini-api/docs) are accessible through this SDK.
604
604
605
605
Other SDKs may be offering additional AI frameworks on top of this SDK, or may
606
606
be targeting specific project environments (like Firebase).
'Warning: Both GOOGLE_GENAI_USE_ENTERPRISE and GOOGLE_GENAI_USE_VERTEXAI are set with conflicting values. The value of GOOGLE_GENAI_USE_ENTERPRISE will be used.',
0 commit comments