[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(generative-ai): Add basic samples for Gemini / VertexAI inference #3670

Merged
merged 12 commits into from
May 6, 2024
Prev Previous commit
Next Next commit
fix: Adjust cloud storage bucket and argurment order for consistency
  • Loading branch information
arbrown committed May 6, 2024
commit 9cc360b239322be9396510de055b92a38b402938
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
{
role: 'user',
parts: [
{text: 'Are following video and image correlated?'},
{
file_data: {
file_uri: 'gs://cloud-samples-data/video/animals.mp4',
Expand All @@ -41,10 +40,11 @@
},
{
file_data: {
file_uri: 'gs://generativeai-downloads/images/character.jpg',
file_uri: 'gs://cloud-samples-data/generative-ai/image/character.jpg',

Check failure on line 43 in generative-ai/snippets/inference/nonStreamMultiModalityBasic.js

View workflow job for this annotation

GitHub Actions / lint

Insert `⏎···············`
mime_type: 'image/jpeg',
},
},
{text: 'Are following video and image correlated?'},
gericdong marked this conversation as resolved.
Show resolved Hide resolved
],
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
{
role: 'user',
parts: [
{text: 'Are following video and image correlated?'},
{
file_data: {
file_uri: 'gs://cloud-samples-data/video/animals.mp4',
Expand All @@ -41,10 +40,11 @@
},
{
file_data: {
file_uri: 'gs://generativeai-downloads/images/character.jpg',
file_uri: 'gs://cloud-samples-data/generative-ai/image/character.jpg',

Check failure on line 43 in generative-ai/snippets/inference/streamMultiModalityBasic.js

View workflow job for this annotation

GitHub Actions / lint

Insert `⏎···············`
mime_type: 'image/jpeg',
},
},
{text: 'Are following video and image correlated?'},
arbrown marked this conversation as resolved.
Show resolved Hide resolved
],
},
],
Expand Down
Loading