@google/genai 0.14.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -13
- package/dist/genai.d.ts +1080 -31
- package/dist/index.js +5181 -2468
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5180 -2469
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.js +8937 -6225
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +14542 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/node.d.ts +1080 -31
- package/dist/web/index.mjs +9192 -6481
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +1080 -31
- package/package.json +14 -7
package/README.md
CHANGED
|
@@ -15,10 +15,6 @@ and [Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/over
|
|
|
15
15
|
|
|
16
16
|
The Google Gen AI SDK is designed to work with Gemini 2.0 features.
|
|
17
17
|
|
|
18
|
-
> [!NOTE]
|
|
19
|
-
> **SDK Preview:**
|
|
20
|
-
> See: [Preview Launch](#preview-launch).
|
|
21
|
-
|
|
22
18
|
> [!CAUTION]
|
|
23
19
|
> **API Key Security:** Avoid exposing API keys in client-side code.
|
|
24
20
|
> Use server-side implementations in production environments.
|
|
@@ -264,18 +260,15 @@ if you are specifying those, you need to explicitly provide the full
|
|
|
264
260
|
`Content[]` structure making it explicit which Parts are 'spoken' by the model,
|
|
265
261
|
or the user. The SDK will throw an exception if you try this.
|
|
266
262
|
|
|
267
|
-
## Preview Launch
|
|
268
|
-
|
|
269
|
-
The SDK is curently in a preview launch stage, per [Google's launch stages](https://cloud.google.com/products?hl=en#section-22) this means:
|
|
270
|
-
|
|
271
|
-
> At Preview, products or features are ready for testing by customers. Preview offerings are often publicly announced, but are not necessarily feature-complete, and no SLAs or technical support commitments are provided for these. Unless stated otherwise by Google, Preview offerings are intended for use in test environments only. The average Preview stage lasts about six months.
|
|
272
|
-
|
|
273
263
|
## How is this different from the other Google AI SDKs
|
|
274
|
-
This SDK (`@google/genai`) is Google Deepmind’s "vanilla" SDK for its generative
|
|
264
|
+
This SDK (`@google/genai`) is Google Deepmind’s "vanilla" SDK for its generative
|
|
265
|
+
AI offerings, and is where Google Deepmind adds new AI features.
|
|
275
266
|
|
|
276
267
|
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.
|
|
277
268
|
|
|
278
|
-
Other SDKs may be offering additional AI frameworks on top of this SDK, or may
|
|
269
|
+
Other SDKs may be offering additional AI frameworks on top of this SDK, or may
|
|
270
|
+
be targeting specific project environments (like Firebase).
|
|
279
271
|
|
|
280
|
-
The `@google/generative_language` and `@google-cloud/vertexai` SDKs are previous
|
|
272
|
+
The `@google/generative_language` and `@google-cloud/vertexai` SDKs are previous
|
|
273
|
+
iterations of this SDK and are no longer receiving new Gemini 2.0+ features.
|
|
281
274
|
|