@ai-sdk/google
Advanced tools
+6
-0
| # @ai-sdk/google | ||
| ## 3.0.27 | ||
| ### Patch Changes | ||
| - 051361b: fix(vertex): add fallback for providerOptions keyname | ||
| ## 3.0.26 | ||
@@ -4,0 +10,0 @@ |
@@ -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) { |
+3
-3
| { | ||
| "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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1057927
0.17%11745
0.03%