We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99623d3 commit 3302bafCopy full SHA for 3302baf
vertexai/main.ts
@@ -21,7 +21,7 @@ import {
21
initializeAppCheck,
22
ReCaptchaEnterpriseProvider,
23
} from "firebase/app-check";
24
-import { getVertexAI, getGenerativeModel } from "firebase/vertexai-preview";
+import { getVertexAI, getGenerativeModel } from "firebase/vertexai";
25
26
async function main() {
27
const app = initializeApp(firebaseConfig);
@@ -38,7 +38,7 @@ async function main() {
38
// Get a Gemini model
39
const model = getGenerativeModel(
40
vertexAI,
41
- { model: "gemini-1.5-flash-preview-0514" }
+ { model: "gemini-1.5-flash" }
42
);
43
// Call generateContent with a string or Content(s)
44
const generateContentResult = await model.generateContent("what is a cat?");
0 commit comments