Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ai-sdk/google

Package Overview
Dependencies
Maintainers
3
Versions
375
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.26
to
3.0.27
+6
-0
CHANGELOG.md
# @ai-sdk/google
## 3.0.27
### Patch Changes
- 051361b: fix(vertex): add fallback for providerOptions keyname
## 3.0.26

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

+2
-2

@@ -246,4 +246,4 @@ "use strict";

parts: content.map((part) => {
var _a2;
const providerOpts = (_a2 = part.providerOptions) == null ? void 0 : _a2[providerOptionsName];
var _a2, _b2, _c2;
const providerOpts = (_c2 = (_a2 = part.providerOptions) == null ? void 0 : _a2[providerOptionsName]) != null ? _c2 : providerOptionsName !== "google" ? (_b2 = part.providerOptions) == null ? void 0 : _b2.google : void 0;
const thoughtSignature = (providerOpts == null ? void 0 : providerOpts.thoughtSignature) != null ? String(providerOpts.thoughtSignature) : void 0;

@@ -250,0 +250,0 @@ switch (part.type) {

@@ -229,4 +229,4 @@ // src/google-generative-ai-language-model.ts

parts: content.map((part) => {
var _a2;
const providerOpts = (_a2 = part.providerOptions) == null ? void 0 : _a2[providerOptionsName];
var _a2, _b2, _c2;
const providerOpts = (_c2 = (_a2 = part.providerOptions) == null ? void 0 : _a2[providerOptionsName]) != null ? _c2 : providerOptionsName !== "google" ? (_b2 = part.providerOptions) == null ? void 0 : _b2.google : void 0;
const thoughtSignature = (providerOpts == null ? void 0 : providerOpts.thoughtSignature) != null ? String(providerOpts.thoughtSignature) : void 0;

@@ -233,0 +233,0 @@ switch (part.type) {

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

@@ -39,4 +39,4 @@ "sideEffects": false,

"dependencies": {
"@ai-sdk/provider-utils": "4.0.14",
"@ai-sdk/provider": "3.0.8"
"@ai-sdk/provider": "3.0.8",
"@ai-sdk/provider-utils": "4.0.14"
},

@@ -43,0 +43,0 @@ "devDependencies": {

@@ -85,3 +85,7 @@ import {

.map(part => {
const providerOpts = part.providerOptions?.[providerOptionsName];
const providerOpts =
part.providerOptions?.[providerOptionsName] ??
(providerOptionsName !== 'google'
? part.providerOptions?.google
: undefined);
const thoughtSignature =

@@ -88,0 +92,0 @@ providerOpts?.thoughtSignature != null

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 too big to display