Skip to content

Commit

Permalink
fix: LVM - Fixed VideoSegmentConfig in Multimodal Embeddings API call
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 609072865
  • Loading branch information
vertex-sdk-bot authored and copybara-github committed Feb 21, 2024
1 parent 81f6a25 commit 665e78c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vertexai/vision_models/_vision_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,11 @@ def get_embeddings(
} # pylint: disable=protected-access

if video_segment_config:
instance["video"]["videoSegmentConfig"] = video_segment_config
instance["video"]["videoSegmentConfig"] = {
"startOffsetSec": video_segment_config.start_offset_sec,
"endOffsetSec": video_segment_config.end_offset_sec,
"intervalSec": video_segment_config.interval_sec,
}

if contextual_text:
instance["text"] = contextual_text
Expand Down

0 comments on commit 665e78c

Please sign in to comment.