-
Notifications
You must be signed in to change notification settings - Fork 318
feat(googleai): Add comprehensive model documentation and Veo 3 support #3162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
my long lived dream of listing supported models .... |
|
||
```ts | ||
// Using Veo 2 | ||
const videoResponse = await ai.generate({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not quite right/complete. Refer to
genkit/samples/js-gemini/src/index.ts
Line 264 in 3fa076b
let { operation } = await ai.generate({ |
More specifically, you need to get the operation:
const { operation } = await ai.generate(...)
and then check the operation status:
while (!operation.done) {
sendChunk('check status of operation ' + operation.id);
operation = await ai.checkOperation(operation);
await new Promise((resolve) => setTimeout(resolve, 5000));
}
and then download the video...
genkit/samples/js-gemini/src/index.ts
Line 311 in 3fa076b
async function downloadVideo(video: MediaPart, path: string) { |
|
||
```ts | ||
// Using Imagen | ||
const imageResponse = await ai.generate({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably best to use
const { media } = await ai.generate(...)
See:
genkit/samples/js-gemini/src/index.ts
Line 186 in 3fa076b
const { media } = await ai.generate({ |
|
||
```ts | ||
// Using Gemini TTS | ||
const audioResponse = await ai.generate({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refer to example here:
genkit/samples/js-gemini/src/index.ts
Line 206 in 3fa076b
const { media } = await ai.generate({ |
const { media } = await ai.generate(...)
but then it requires conversion from PCM to WAV format to be usable:
genkit/samples/js-gemini/src/index.ts
Line 232 in 3fa076b
async function toWav( |
}); | ||
``` | ||
|
||
### Native Audio (Conversational) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't support this....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AI thinks we should...
Summary
This PR enhances the Google AI plugin documentation by adding a comprehensive list of supported models and adding support for the Veo 3 video generation model.
Changes
Documentation Improvements
SUPPORTED_MODELS.md
with a complete reference of all supported models including:README.md
to include comprehensive usage examples for each model type:Code Changes
KNOWN_VEO_MODELS
type inveo.ts
to includeveo-3.0-generate-003
.Benefits
Testing
The changes are documentation-focused with a minor type update. The Veo 3 model will work through the existing dynamic model discovery mechanism when available in the API.