Skip to content

Commit

Permalink
fix(vertexai): variable name (#4109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deleplace committed Apr 25, 2024
1 parent 8153999 commit 6022d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vertexai/multimodal-video/multimodalvideo.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ func generateMultimodalContent(w io.Writer, prompt, video, projectID, location,
model.SetTemperature(0.4)

// Given a video file URL, prepare video file as genai.Part
img := genai.FileData{
part := genai.FileData{
MIMEType: mime.TypeByExtension(filepath.Ext(video)),
FileURI: video,
}

res, err := model.GenerateContent(ctx, img, genai.Text(prompt))
res, err := model.GenerateContent(ctx, part, genai.Text(prompt))
if err != nil {
return fmt.Errorf("unable to generate contents: %v", err)
}
Expand Down

0 comments on commit 6022d19

Please sign in to comment.