You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@ai-sdk/google

Package Overview
Dependencies
Maintainers
3
Versions
407
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/google - npm Package Compare versions

Comparing version
3.0.27
to
3.0.28
+6
-0
CHANGELOG.md
# @ai-sdk/google
## 3.0.28
### Patch Changes
- 5a307f5: feat(provider/google-vertex): allow using Gemini image models with `generateImage`
## 3.0.27

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

+1
-1
{
"name": "@ai-sdk/google",
"version": "3.0.27",
"version": "3.0.28",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -27,2 +27,3 @@ import {

import { GoogleGenerativeAILanguageModel } from './google-generative-ai-language-model';
import type { GoogleLanguageModelOptions } from './google-generative-ai-options';

@@ -276,5 +277,14 @@ interface GoogleGenerativeAIImageModelConfig {

responseModalities: ['IMAGE'],
imageConfig: aspectRatio ? { aspectRatio } : undefined,
...((providerOptions?.google as Record<string, unknown>) ?? {}),
},
imageConfig: aspectRatio
? {
aspectRatio: aspectRatio as NonNullable<
GoogleLanguageModelOptions['imageConfig']
>['aspectRatio'],
}
: undefined,
...((providerOptions?.google as Omit<
GoogleLanguageModelOptions,
'responseModalities' | 'imageConfig'
>) ?? {}),
} satisfies GoogleLanguageModelOptions,
},

@@ -281,0 +291,0 @@ headers,

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

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