GenerateContentStream() not working in React Native App in Firebase library #8647
Unanswered
eventhorizonapp62
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having a react native app in which integrated react-native-firebase library .
Getting below error when using generateContentStream() from vertex AI .
const firebaseApp=getApp() console.log("Firebase app initialized successfully!") const vertexai = getVertexAI(firebaseApp) const model = getGenerativeModel(vertexai, { model: 'gemini-2.0-flash' }) const response = await model.generateContentStream('Write a short poem')
Using these libraries:
"@react-native-firebase/app":"^23.0.0",
"@react-native-firebase/vertexai": "^23.0.0"
Beta Was this translation helpful? Give feedback.
All reactions