Skip to content

Commit 9cc360b

Browse files
committed
fix: Adjust cloud storage bucket and argurment order for consistency
1 parent b61f968 commit 9cc360b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

generative-ai/snippets/inference/nonStreamMultiModalityBasic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ async function generateContent(
3232
{
3333
role: 'user',
3434
parts: [
35-
{text: 'Are following video and image correlated?'},
3635
{
3736
file_data: {
3837
file_uri: 'gs://cloud-samples-data/video/animals.mp4',
@@ -41,10 +40,11 @@ async function generateContent(
4140
},
4241
{
4342
file_data: {
44-
file_uri: 'gs://generativeai-downloads/images/character.jpg',
43+
file_uri: 'gs://cloud-samples-data/generative-ai/image/character.jpg',
4544
mime_type: 'image/jpeg',
4645
},
4746
},
47+
{text: 'Are following video and image correlated?'},
4848
],
4949
},
5050
],

generative-ai/snippets/inference/streamMultiModalityBasic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ async function generateContent(
3232
{
3333
role: 'user',
3434
parts: [
35-
{text: 'Are following video and image correlated?'},
3635
{
3736
file_data: {
3837
file_uri: 'gs://cloud-samples-data/video/animals.mp4',
@@ -41,10 +40,11 @@ async function generateContent(
4140
},
4241
{
4342
file_data: {
44-
file_uri: 'gs://generativeai-downloads/images/character.jpg',
43+
file_uri: 'gs://cloud-samples-data/generative-ai/image/character.jpg',
4544
mime_type: 'image/jpeg',
4645
},
4746
},
47+
{text: 'Are following video and image correlated?'},
4848
],
4949
},
5050
],

0 commit comments

Comments
 (0)