mirror of
https://github.com/xavidop/cardex.git
synced 2026-08-29 01:08:52 +00:00
feat: use veo3
This commit is contained in:
+2
-2
@@ -10,8 +10,8 @@
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"emulators": "firebase emulators:start",
|
||||
"emulators:ui": "firebase emulators:start --only hosting,firestore,auth",
|
||||
"emulators": "firebase emulators:start --project demo-app",
|
||||
"emulators:ui": "firebase emulators:start --only pubsub,functions,firestore,auth,storage --project demo-app",
|
||||
"dev:full": "concurrently \"npm run emulators\" \"npm run dev\""
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -80,7 +80,7 @@ export async function generateCardVideo(input: GenerateCardVideoInput): Promise<
|
||||
// Start video generation operation
|
||||
console.log('Starting Veo video generation...');
|
||||
let operation = await ai.models.generateVideos({
|
||||
model: 'veo-2.0-generate-001',
|
||||
model: 'veo-3.0-generate-preview',
|
||||
prompt: animationPrompt,
|
||||
image: {
|
||||
mimeType: mimeType,
|
||||
@@ -88,9 +88,7 @@ export async function generateCardVideo(input: GenerateCardVideoInput): Promise<
|
||||
},
|
||||
config: {
|
||||
numberOfVideos: 1,
|
||||
aspectRatio: '9:16',
|
||||
durationSeconds: 5, // Set duration to 5 seconds
|
||||
enhancePrompt: true,
|
||||
aspectRatio: '9:16'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user