@ai-sdk/google
Advanced tools
+2
-2
| { | ||
| "name": "@ai-sdk/google", | ||
| "version": "4.0.33", | ||
| "version": "4.0.34", | ||
| "type": "module", | ||
@@ -39,3 +39,3 @@ "license": "Apache-2.0", | ||
| "@ai-sdk/provider": "4.0.5", | ||
| "@ai-sdk/provider-utils": "5.0.20" | ||
| "@ai-sdk/provider-utils": "5.0.21" | ||
| }, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
| import { | ||
| AISDKError, | ||
| type Experimental_VideoModelV4, | ||
| type Experimental_VideoModelV4 as VideoModelV4, | ||
| type Experimental_VideoModelV4CallOptions as VideoModelV4CallOptions, | ||
| type Experimental_VideoModelV4File, | ||
| type Experimental_VideoModelV4File as VideoModelV4File, | ||
| type Experimental_VideoModelV4OperationStartResult as VideoModelV4OperationStartResult, | ||
@@ -31,4 +31,2 @@ type Experimental_VideoModelV4OperationStatusResult as VideoModelV4OperationStatusResult, | ||
| type VideoModelV4 = Experimental_VideoModelV4; | ||
| interface GoogleVideoModelConfig { | ||
@@ -47,3 +45,3 @@ provider: string; | ||
| options: VideoModelV4CallOptions, | ||
| ): Experimental_VideoModelV4File | undefined { | ||
| ): VideoModelV4File | undefined { | ||
| return options.frameImages?.find(frame => frame.frameType === 'first_frame') | ||
@@ -55,3 +53,3 @@ ?.image; | ||
| options: VideoModelV4CallOptions, | ||
| ): Experimental_VideoModelV4File | undefined { | ||
| ): VideoModelV4File | undefined { | ||
| return getFirstFrameImage(options) ?? options.image; | ||
@@ -62,3 +60,3 @@ } | ||
| options: VideoModelV4CallOptions, | ||
| ): Experimental_VideoModelV4File | undefined { | ||
| ): VideoModelV4File | undefined { | ||
| return options.frameImages?.find(frame => frame.frameType === 'last_frame') | ||
@@ -70,3 +68,3 @@ ?.image; | ||
| options: VideoModelV4CallOptions, | ||
| ): Array<Experimental_VideoModelV4File> | undefined { | ||
| ): Array<VideoModelV4File> | undefined { | ||
| if (options.frameImages != null && options.frameImages.length > 0) { | ||
@@ -82,3 +80,3 @@ return undefined; | ||
| function convertFileToGoogleImage( | ||
| file: Experimental_VideoModelV4File, | ||
| file: VideoModelV4File, | ||
| warnings: SharedV4Warning[], | ||
@@ -143,3 +141,3 @@ ): Record<string, unknown> | undefined { | ||
| function convertInputReferenceImage( | ||
| file: Experimental_VideoModelV4File, | ||
| file: VideoModelV4File, | ||
| warnings: SharedV4Warning[], | ||
@@ -151,3 +149,3 @@ ): Record<string, unknown> | undefined { | ||
| export class GoogleVideoModel implements Experimental_VideoModelV4 { | ||
| export class GoogleVideoModel implements VideoModelV4 { | ||
| readonly specificationVersion = 'v4'; | ||
@@ -154,0 +152,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
2099835
-0.01%26647
0+ Added
- Removed