golang-samples
golang-samples copied to clipboard
feat(vertexai): Multimodal sample with video
Same code as the multimodal sample, but with the URL of a video.
Yes. IMO it's fine to have code duplicated in the modules of each samples.
Factoring would imply putting image+video in the same sample folder, which is fine too.
Yes. IMO it's fine to have code duplicated in the modules of each samples.
Factoring would imply putting image+video in the same sample folder, which is fine too.
I think maybe we can just show both video or image in the multimodal sample and link to it from both places? Having identical samples different with just the link may be confusing to users who will be looking for the difference and not finding any
In this page we want to show a distinct snippet in the two section "Image" and "Video"
https://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/send-multimodal-prompts#gemini-send-multimodal-samples-go
In this page we want to show a distinct snippet in the two section "Image" and "Video"
https://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/send-multimodal-prompts#gemini-send-multimodal-samples-go
OK, fair enough, then please make it as identical as possible, except perhaps a comment and the link itself. I think there are some extra differences like whitespace right now
OK, fair enough, then please make it as identical as possible, except perhaps a comment and the link itself. I think there are some extra differences like whitespace right now
Done, they're now line-for-line identical. The difference is s/image/video/.
Here is the summary of changes.
You are about to add 1 region tag.
- vertexai/multimodal-video/multimodalvideo.go:18, tag
aiplatform_gemini_single_turn_video
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:
- [ ] Refresh this comment