Update Veo 3.1 features including interpolation#207
Update Veo 3.1 features including interpolation#207chrisraygill wants to merge 1 commit intomainfrom
Conversation
…ion, and reference images with updated examples and configuration details.
Summary of ChangesHello @chrisraygill, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly updates the documentation for the Google GenAI integration, specifically focusing on the Veo 3.1 model. It introduces and clarifies several advanced video generation features, including the ability to interpolate between two images, extend existing videos, and utilize multiple reference images for more guided content creation. The updates also refine the descriptions of various configuration options to accurately reflect the model's capabilities, ensuring users have comprehensive guidance on leveraging these new functionalities. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the documentation for the Google Generative AI plugin to include new features for the Veo 3.1 model series, such as interpolation, video extension, and using reference images. The changes are mostly additions of new sections with explanations and code examples. I've found a couple of areas in the documentation that could be improved for clarity and correctness. My main concerns are a duplicated configuration entry and a slightly misleading explanation for the new interpolation feature.
| - **durationSeconds** _number_ (Veo 2 only) | ||
|
|
||
| Length of each output video in seconds (5 to 8). Not configurable for Veo 3.1/3.0 (defaults to 8 seconds). | ||
| - **durationSeconds** _number_ |
There was a problem hiding this comment.
|
|
||
| **Interpolation:** | ||
|
|
||
| To generate a video that transitions between a starting image and an ending image, use the `image` parameter for the first frame and the `lastFrame` config for the final frame. |
There was a problem hiding this comment.
The explanation for interpolation could be clearer. It mentions using an image parameter for the first frame, but the code example provides the starting image as a media part within the prompt array. To avoid confusion, I suggest rephrasing this to better match the code example.
To generate a video that transitions between a starting image and an ending image, provide the starting image as a `media` part in the `prompt` and the ending image in the `lastFrame` config parameter.
| let { operation } = await ai.generate({ | ||
| model: googleAI.model('veo-3.1-generate-preview'), | ||
| prompt: [ | ||
| { text: 'A ghostly woman swinging gently on a rope swing beneath a massive tree fades away, vanishing completely.' }, |
There was a problem hiding this comment.
It would be good if this example fed into the extending one...
No description provided.