Skip to content

Commit 3302baf

Browse files
authored
Upgrade firebase version to v11 (#857)
1 parent 99623d3 commit 3302baf

File tree

3 files changed

+351
-311
lines changed

3 files changed

+351
-311
lines changed

vertexai/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
initializeAppCheck,
2222
ReCaptchaEnterpriseProvider,
2323
} from "firebase/app-check";
24-
import { getVertexAI, getGenerativeModel } from "firebase/vertexai-preview";
24+
import { getVertexAI, getGenerativeModel } from "firebase/vertexai";
2525

2626
async function main() {
2727
const app = initializeApp(firebaseConfig);
@@ -38,7 +38,7 @@ async function main() {
3838
// Get a Gemini model
3939
const model = getGenerativeModel(
4040
vertexAI,
41-
{ model: "gemini-1.5-flash-preview-0514" }
41+
{ model: "gemini-1.5-flash" }
4242
);
4343
// Call generateContent with a string or Content(s)
4444
const generateContentResult = await model.generateContent("what is a cat?");

0 commit comments

Comments
 (0)