Skip to content

Commit

Permalink
feat(vertexai): Multimodal sample with video (#3774)
Browse files Browse the repository at this point in the history
* feat(vertexai): add a multimodal sample with a video file

Same code as the multimodal sample, but with the URL of a video.

* feat(vertexai): align code of multimodal-video with multimodal

* fix(vertexai): bump SDK versions in go.mod to latest release in multimodal-video

* test(vertexai): add test for multimodal, multimodal-video

* fix(vertexai): Copyright 2024 Google LLC

* fix(vertexai): new(bytes.Buffer) in test for multimodal-video

* feat(vertexai): model names gemini 1.0

* fix(vertexai): visible sample values in comments

* fix(vertexai): hardcode temperature

---------

Co-authored-by: Polong Lin <polong-lin@users.noreply.github.com>
Co-authored-by: Eric Dong <itseric@google.com>
Co-authored-by: Adam Ross <adamross@google.com>
  • Loading branch information
4 people committed Feb 21, 2024
1 parent 48e31da commit 330296f
Show file tree
Hide file tree
Showing 6 changed files with 385 additions and 45 deletions.
47 changes: 47 additions & 0 deletions vertexai/multimodal-video/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module github.com/GoogleCloudPlatform/golang-samples/vertexai/multimodal-video

go 1.21

require (
cloud.google.com/go/vertexai v0.7.1
github.com/GoogleCloudPlatform/golang-samples v0.0.0-20240215053133-28d24e441ba2
)

require (
cloud.google.com/go v0.112.0 // indirect
cloud.google.com/go/aiplatform v1.60.0 // indirect
cloud.google.com/go/compute v1.24.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.6 // indirect
cloud.google.com/go/longrunning v0.5.5 // indirect
cloud.google.com/go/storage v1.36.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.1 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0 // indirect
go.opentelemetry.io/otel v1.23.1 // indirect
go.opentelemetry.io/otel/metric v1.23.1 // indirect
go.opentelemetry.io/otel/trace v1.23.1 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/oauth2 v0.17.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/api v0.165.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240213162025-012b6fc9bca9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9 // indirect
google.golang.org/grpc v1.61.1 // indirect
google.golang.org/protobuf v1.32.0 // indirect
)

0 comments on commit 330296f

Please sign in to comment.