Sign In

@ai-sdk/google

Package Overview
Dependencies
Maintainers
3
Versions
626
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
4.0.44
to
4.0.45
+1
-1
package.json
{
"name": "@ai-sdk/google",
"version": "4.0.44",
"version": "4.0.45",
"type": "module",

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

@@ -1173,3 +1173,3 @@ import type {

) {
return resolveGemini3ThinkingConfig({ reasoning, warnings });
return resolveGemini3ThinkingConfig({ reasoning, modelId, warnings });
}

@@ -1182,2 +1182,3 @@

reasoning,
modelId,
warnings,

@@ -1189,7 +1190,12 @@ }: {

>;
modelId: string;
warnings: SharedV4Warning[];
}): Pick<GoogleThinkingConfig, 'thinkingLevel'> | undefined {
const minimumThinkingLevel = /(^|\/)gemini-3\.7-flash$/i.test(modelId)
? 'low'
: 'minimal';
if (reasoning === 'none') {
// It's not possible to fully disable thinking with Gemini 3.
return { thinkingLevel: 'minimal' };
return { thinkingLevel: minimumThinkingLevel };
}

@@ -1200,3 +1206,3 @@

effortMap: {
minimal: 'minimal',
minimal: minimumThinkingLevel,
low: 'low',

@@ -1203,0 +1209,0 @@ medium: 'medium',

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

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

Sorry, the diff of this file is not supported yet