🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@ai-sdk/provider

Package Overview
Dependencies
Maintainers
3
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/provider - npm Package Compare versions

Comparing version
4.0.0
to
4.0.1
+24
src/video-model/v3/video-model-v3-frame-image.ts
import type { VideoModelV3File } from './video-model-v3-file';
/**
* The role a frame image plays in video generation.
*
* - `first_frame`: the starting frame the model animates from
* - `last_frame`: the ending frame the model animates towards
*/
export type VideoModelV3FrameType = 'first_frame' | 'last_frame';
/**
* A role-tagged image input for image-to-video and first-last-frame generation.
*/
export type VideoModelV3FrameImage = {
/**
* The image file used for this frame.
*/
image: VideoModelV3File;
/**
* Which frame this image represents.
*/
frameType: VideoModelV3FrameType;
};
import type { VideoModelV4File } from './video-model-v4-file';
/**
* The role a frame image plays in video generation.
*
* - `first_frame`: the starting frame the model animates from
* - `last_frame`: the ending frame the model animates towards
*/
export type VideoModelV4FrameType = 'first_frame' | 'last_frame';
/**
* A role-tagged image input for image-to-video and first-last-frame generation.
*/
export type VideoModelV4FrameImage = {
/**
* The image file used for this frame.
*/
image: VideoModelV4File;
/**
* Which frame this image represents.
*/
frameType: VideoModelV4FrameType;
};
+6
-0
# @ai-sdk/provider
## 4.0.1
### Patch Changes
- 0274f34: feat (video): add first-class `frameImages` and `inputReferences` call options for video generation
## 4.0.0

@@ -4,0 +10,0 @@

+1
-1
{
"name": "@ai-sdk/provider",
"version": "4.0.0",
"version": "4.0.1",
"type": "module",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -7,1 +7,5 @@ export type {

export type { VideoModelV3File as Experimental_VideoModelV3File } from './video-model-v3-file';
export type {
VideoModelV3FrameImage as Experimental_VideoModelV3FrameImage,
VideoModelV3FrameType as Experimental_VideoModelV3FrameType,
} from './video-model-v3-frame-image';
import type { SharedV3ProviderOptions } from '../../shared';
import type { VideoModelV3File } from './video-model-v3-file';
import type { VideoModelV3FrameImage } from './video-model-v3-frame-image';

@@ -58,2 +59,14 @@ export type VideoModelV3CallOptions = {

/**
* Role-tagged image inputs for first-last-frame generation.
* Each entry declares whether it is the `first_frame` or the
* `last_frame` of the generated video.
*/
frameImages: Array<VideoModelV3FrameImage> | undefined;
/**
* Reference image inputs for reference-to-video generation.
*/
inputReferences: Array<VideoModelV3File> | undefined;
/**
* Whether the model should generate audio alongside the video.

@@ -60,0 +73,0 @@ */

@@ -8,1 +8,5 @@ export type { VideoModelV4 as Experimental_VideoModelV4 } from './video-model-v4';

export type { VideoModelV4File as Experimental_VideoModelV4File } from './video-model-v4-file';
export type {
VideoModelV4FrameImage as Experimental_VideoModelV4FrameImage,
VideoModelV4FrameType as Experimental_VideoModelV4FrameType,
} from './video-model-v4-frame-image';
import type { SharedV4ProviderOptions } from '../../shared';
import type { VideoModelV4File } from './video-model-v4-file';
import type { VideoModelV4FrameImage } from './video-model-v4-frame-image';

@@ -58,2 +59,14 @@ export type VideoModelV4CallOptions = {

/**
* Role-tagged image inputs for first-last-frame generation.
* Each entry declares whether it is the `first_frame` or the
* `last_frame` of the generated video.
*/
frameImages: Array<VideoModelV4FrameImage> | undefined;
/**
* Reference image inputs for reference-to-video generation.
*/
inputReferences: Array<VideoModelV4File> | undefined;
/**
* Whether the model should generate audio alongside the video.

@@ -60,0 +73,0 @@ */

Sorry, the diff of this file is too big to display