
VertexAI
Installation and getting started with VertexAI.
Vertex AI has been deprecated by Google in favor of the Firebase AI Logic SDK.
Using the Firebase AI Logic SDK with the Vertex AI Gemini API is still generally available (GA).
To start using the new SDK, import the @react-native-firebase/ai
package and use the modular method getAI()
to initialize. See details in the migration guide.
// BEFORE - using firebase/vertexai
import { initializeApp } from 'firebase/app';
import { getVertexAI, getGenerativeModel } from 'firebase/vertexai'; // Remove this
// AFTER - using firebase/ai
import { initializeApp } from 'firebase/app';
import { getAI, getGenerativeModel } from 'firebase/ai'; // Add this