🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ai-sdk/google

Package Overview
Dependencies
Maintainers
3
Versions
595
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.96
to
3.0.97
+1
-0
dist/index.d.mts

@@ -173,2 +173,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

}[];
responseId?: string | null | undefined;
usageMetadata?: {

@@ -175,0 +176,0 @@ cachedContentTokenCount?: number | null | undefined;

@@ -173,2 +173,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

}[];
responseId?: string | null | undefined;
usageMetadata?: {

@@ -175,0 +176,0 @@ cachedContentTokenCount?: number | null | undefined;

@@ -202,2 +202,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

}[];
responseId?: string | null | undefined;
usageMetadata?: {

@@ -204,0 +205,0 @@ cachedContentTokenCount?: number | null | undefined;

@@ -202,2 +202,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

}[];
responseId?: string | null | undefined;
usageMetadata?: {

@@ -204,0 +205,0 @@ cachedContentTokenCount?: number | null | undefined;

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

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

@@ -551,3 +551,4 @@ import type {

response: {
// TODO timestamp, model id, id
// TODO timestamp, model id
id: response.responseId ?? undefined,
headers: responseHeaders,

@@ -594,2 +595,3 @@ body: rawResponse,

let hasToolCalls = false;
let hasEmittedResponseMetadata = false;

@@ -673,2 +675,10 @@ // Track active blocks to group consecutive parts of same type

if (!hasEmittedResponseMetadata && value.responseId != null) {
hasEmittedResponseMetadata = true;
controller.enqueue({
type: 'response-metadata',
id: value.responseId,
});
}
const usageMetadata = value.usageMetadata;

@@ -1458,2 +1468,3 @@

z.object({
responseId: z.string().nullish(),
candidates: z.array(

@@ -1512,2 +1523,3 @@ z.object({

z.object({
responseId: z.string().nullish(),
candidates: z

@@ -1514,0 +1526,0 @@ .array(

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

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