@depup/ai-sdk__google 4.0.90-depup.0 → 4.0.93-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.93
4
+
5
+ ### Patch Changes
6
+
7
+ - 5cf13d2: feat: map the top level embedding dimensions to provider settings
8
+ - Updated dependencies [4dbc902]
9
+ - @ai-sdk/provider@4.0.26
10
+ - @ai-sdk/provider-utils@5.0.58
11
+
12
+ ## 4.0.92
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [9184a35]
17
+ - @ai-sdk/provider@4.0.25
18
+ - @ai-sdk/provider-utils@5.0.57
19
+
20
+ ## 4.0.91
21
+
22
+ ### Patch Changes
23
+
24
+ - 32ff7ad: Preserve tool errors in OpenAI Chat Completions and Responses by wrapping their payloads in an `error` object. Send Google tool errors and denied executions under `functionResponse.response.error`.
25
+
3
26
  ## 4.0.90
4
27
 
5
28
  ### Patch Changes
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/ai-sdk__google
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@ai-sdk/google](https://www.npmjs.com/package/@ai-sdk/google) @ 4.0.90 |
17
- | Processed | 2026-10-07 |
16
+ | Original | [@ai-sdk/google](https://www.npmjs.com/package/@ai-sdk/google) @ 4.0.93 |
17
+ | Processed | 2026-10-09 |
18
18
  | Smoke test | failed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-10-07T08:17:42.228Z",
3
+ "timestamp": "2026-10-09T00:36:13.936Z",
4
4
  "totalUpdated": 0
5
5
  }
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { Experimental_DecisionLanguageModel } from "@ai-sdk/provider-utils/exper
3
3
  import { AISDKError, InvalidArgumentError, InvalidResponseDataError, TooManyEmbeddingValuesForCallError, UnsupportedFunctionalityError } from "@ai-sdk/provider";
4
4
  import { z } from "zod/v4";
5
5
  //#region src/version.ts
6
- const VERSION = "4.0.90";
6
+ const VERSION = "4.0.93";
7
7
  //#endregion
8
8
  //#region src/google-error.ts
9
9
  const googleErrorDataSchema = lazySchema(() => zodSchema(z.object({ error: z.object({
@@ -105,7 +105,7 @@ var GoogleEmbeddingModel = class GoogleEmbeddingModel {
105
105
  this.modelId = modelId;
106
106
  this.config = config;
107
107
  }
108
- async doEmbed({ values, headers, abortSignal, providerOptions }) {
108
+ async doEmbed({ values, dimensions, headers, abortSignal, providerOptions }) {
109
109
  const googleOptions = await parseProviderOptions({
110
110
  provider: "google",
111
111
  providerOptions,
@@ -133,7 +133,7 @@ var GoogleEmbeddingModel = class GoogleEmbeddingModel {
133
133
  body: {
134
134
  model: `models/${this.modelId}`,
135
135
  content: { parts },
136
- outputDimensionality: googleOptions?.outputDimensionality,
136
+ outputDimensionality: googleOptions?.outputDimensionality ?? dimensions,
137
137
  taskType: googleOptions?.taskType
138
138
  },
139
139
  failedResponseHandler: googleFailedResponseHandler,
@@ -163,7 +163,7 @@ var GoogleEmbeddingModel = class GoogleEmbeddingModel {
163
163
  role: "user",
164
164
  parts: valueParts != null ? [...textPart, ...valueParts] : [{ text: value }]
165
165
  },
166
- outputDimensionality: googleOptions?.outputDimensionality,
166
+ outputDimensionality: googleOptions?.outputDimensionality ?? dimensions,
167
167
  taskType: googleOptions?.taskType
168
168
  };
169
169
  }) },
@@ -551,14 +551,17 @@ function convertToGoogleMessages(prompt, options) {
551
551
  if (output.type === "content") {
552
552
  if (supportsFunctionResponseParts) appendToolResultParts(parts, part.toolName, output.value, part.toolCallId, includeFunctionCallIds, supportedFunctionResponseUrls);
553
553
  else appendLegacyToolResultParts(parts, part.toolName, output.value, part.toolCallId, includeFunctionCallIds);
554
- } else parts.push({ functionResponse: {
555
- ...includeFunctionCallIds && part.toolCallId != null ? { id: part.toolCallId } : {},
556
- name: part.toolName,
557
- response: {
554
+ } else {
555
+ const isError = output.type === "error-text" || output.type === "error-json" || output.type === "execution-denied";
556
+ parts.push({ functionResponse: {
557
+ ...includeFunctionCallIds && part.toolCallId != null ? { id: part.toolCallId } : {},
558
558
  name: part.toolName,
559
- content: output.type === "execution-denied" ? output.reason ?? "Tool call execution denied." : serializeFunctionResponseContent(output.value)
560
- }
561
- } });
559
+ response: {
560
+ name: part.toolName,
561
+ ...isError ? { error: output.type === "execution-denied" ? output.reason ?? "Tool call execution denied." : serializeFunctionResponseContent(output.value) } : { content: serializeFunctionResponseContent(output.value) }
562
+ }
563
+ } });
564
+ }
562
565
  }
563
566
  contents.push({
564
567
  role: "user",