genkit
genkit copied to clipboard
[JS] @google/generative-ai is deprecated
Is your feature request related to a problem? Please describe. No
Describe the solution you'd like
@google/generative-ai is now deprecated and being replaced by @google/genai, which integrates functionality from both @google/generative-ai and @google/vertex-ai. As a result, we need to either update our existing plugins or create new ones that work with the unified SDK.
Describe alternatives you've considered
Additional context
https://github.com/googleapis/js-genai
The Google Gen AI JavaScript SDK is designed for TypeScript and JavaScript developers to build applications powered by Gemini. The SDK supports both the Gemini Developer API and Vertex AI.
https://github.com/googleapis/js-genai?tab=readme-ov-file#how-is-this-different-from-the-other-google-ai-sdks
How is this different from the other Google AI SDKs
This SDK (
@google/genai) is Google Deepmind’s "vanilla" SDK for its generative AI offerings, and is where Google Deepmind adds new AI features.Models hosted either on the Vertex AI platform or the Gemini Developer platform are accessible through this SDK.
Other SDKs may be offering additional AI frameworks on top of this SDK, or may be targeting specific project environments (like Firebase).
The
@google/generative_languageand@google-cloud/vertexaiSDKs are previous iterations of this SDK and are no longer receiving new Gemini 2.0+ features.