@ai-sdk/google
Advanced tools
+1
-0
@@ -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; |
+1
-0
@@ -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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3107323
0.18%34014
0.17%