Skip to content

Conversation

@philipshurpik
Copy link

FPS option is missed in class VideoMetadata(proto.Message) in types/content.py
both in v1 and v1beta1

It should exist according to both docs (v1 and v1beta1):
https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1/Content
https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1beta1/Content

And also is existent in VideoMetadata in content.proto:
https://github.com/googleapis/googleapis/blob/97763d6efb2d35474e0363c254ee6994837a08fa/google/ai/generativelanguage/v1/content.proto#L107

I implemented it's support according to proto file and documentation.
Tested locally that library version with this changes is actually working by using less 'input_tokens'.
Also added using of fps field in few tests to the existing video_metadata object

Fixes #6073 🦕

@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Oct 31, 2025
@google-cla
Copy link

google-cla bot commented Oct 31, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label bot added the api: vertex-ai Issues related to the googleapis/python-aiplatform API. label Oct 31, 2025
@philipshurpik philipshurpik changed the title Fix/option to set fps in video metadata fix: option to set fps in video metadata according to the documentation Oct 31, 2025
@philipshurpik philipshurpik changed the title fix: option to set fps in video metadata according to the documentation fix: added option to set fps in video metadata according to the documentation Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fps option is missing in VideoMetadata

1 participant