@ai-sdk/google
Advanced tools
+1
-1
| { | ||
| "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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
2120343
0.05%26907
0.03%1
-50%