Skip to content

Commit

Permalink
feat: update quickstart samples to use the Gemini Flash model
Browse files Browse the repository at this point in the history
  • Loading branch information
irataxy committed Jun 4, 2024
1 parent b7c41b0 commit 942ab0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generative-ai/snippets/gemini-video-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function analyze_video_with_audio(projectId = 'PROJECT_ID') {
const vertexAI = new VertexAI({project: projectId, location: 'us-central1'});

const generativeModel = vertexAI.getGenerativeModel({
model: 'gemini-1.5-pro-preview-0409',
model: 'gemini-1.5-flash-001',
});

const filePart = {
Expand Down
2 changes: 1 addition & 1 deletion generative-ai/snippets/nonStreamingMultipartContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const {VertexAI} = require('@google-cloud/vertexai');
async function createNonStreamingMultipartContent(
projectId = 'PROJECT_ID',
location = 'us-central1',
model = 'gemini-1.0-pro-vision-001',
model = 'gemini-1.5-flash-001',
image = 'gs://generativeai-downloads/images/scones.jpg',
mimeType = 'image/jpeg'
) {
Expand Down

0 comments on commit 942ab0d

Please sign in to comment.