ai 7.0.14 → 7.0.16

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.
@@ -85,7 +85,7 @@ import {
85
85
  } from "@ai-sdk/provider-utils";
86
86
 
87
87
  // src/version.ts
88
- var VERSION = true ? "7.0.14" : "0.0.0-test";
88
+ var VERSION = true ? "7.0.16" : "0.0.0-test";
89
89
 
90
90
  // src/util/download/download.ts
91
91
  var download = async ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "7.0.14",
3
+ "version": "7.0.16",
4
4
  "type": "module",
5
5
  "description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@ai-sdk/gateway": "4.0.11",
45
+ "@ai-sdk/gateway": "4.0.12",
46
46
  "@ai-sdk/provider": "4.0.2",
47
47
  "@ai-sdk/provider-utils": "5.0.5"
48
48
  },
package/src/ui/chat.ts CHANGED
@@ -493,7 +493,7 @@ export abstract class AbstractChat<UI_MESSAGE extends UIMessage> {
493
493
  ? {
494
494
  ...part,
495
495
  state: 'approval-responded',
496
- approval: { id, approved, reason },
496
+ approval: { ...part.approval, id, approved, reason },
497
497
  }
498
498
  : part;
499
499