Skip to content

Commit

Permalink
Merge branch 'main' into ci-make
Browse files Browse the repository at this point in the history
  • Loading branch information
pattishin authored Dec 20, 2023
2 parents 40b043d + 8f00e33 commit afe9460
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion generative-ai/snippets/nonStreamingMultipartContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function createNonStreamingMultipartContent(
};

const request = {
contents: [{role: 'user', parts: [textPart, filePart]}],
contents: [{role: 'user', parts: [filePart, textPart]}],
};

console.log('Prompt Text:');
Expand Down
6 changes: 3 additions & 3 deletions generative-ai/snippets/sendMultiModalPromptWithVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ async function sendMultiModalPromptWithVideo(
{
role: 'user',
parts: [
{
text: 'What is in the video?',
},
{
fileData: {
fileUri: 'gs://cloud-samples-data/video/animals.mp4',
mimeType: 'video/mp4',
},
},
{
text: 'What is in the video?',
},
],
},
],
Expand Down
2 changes: 1 addition & 1 deletion generative-ai/snippets/streamMultipartContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function createStreamMultipartContent(
};

const request = {
contents: [{role: 'user', parts: [textPart, filePart]}],
contents: [{role: 'user', parts: [filePart, textPart]}],
};

console.log('Prompt Text:');
Expand Down

0 comments on commit afe9460

Please sign in to comment.