ai 6.0.252 → 6.0.253

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.
@@ -164,7 +164,7 @@ function detectMediaType({
164
164
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
165
165
 
166
166
  // src/version.ts
167
- var VERSION = true ? "6.0.252" : "0.0.0-test";
167
+ var VERSION = true ? "6.0.253" : "0.0.0-test";
168
168
 
169
169
  // src/util/download/download.ts
170
170
  var download = async ({
@@ -144,7 +144,7 @@ import {
144
144
  } from "@ai-sdk/provider-utils";
145
145
 
146
146
  // src/version.ts
147
- var VERSION = true ? "6.0.252" : "0.0.0-test";
147
+ var VERSION = true ? "6.0.253" : "0.0.0-test";
148
148
 
149
149
  // src/util/download/download.ts
150
150
  var download = async ({
@@ -102,6 +102,10 @@ A reasoning part of a message.
102
102
  ```typescript
103
103
  type ReasoningUIPart = {
104
104
  type: 'reasoning';
105
+ /**
106
+ * The reasoning part ID.
107
+ */
108
+ id?: string;
105
109
  /**
106
110
  * The reasoning text.
107
111
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "6.0.252",
3
+ "version": "6.0.253",
4
4
  "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.",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@opentelemetry/api": "^1.9.0",
48
- "@ai-sdk/gateway": "3.0.171",
48
+ "@ai-sdk/gateway": "3.0.172",
49
49
  "@ai-sdk/provider": "3.0.15",
50
50
  "@ai-sdk/provider-utils": "4.0.45"
51
51
  },
@@ -455,6 +455,7 @@ export function processUIMessageStream<UI_MESSAGE extends UIMessage>({
455
455
  case 'reasoning-start': {
456
456
  const reasoningPart: ReasoningUIPart = {
457
457
  type: 'reasoning',
458
+ id: chunk.id,
458
459
  text: '',
459
460
  providerMetadata: chunk.providerMetadata,
460
461
  state: 'streaming',
@@ -115,6 +115,11 @@ export type TextUIPart = {
115
115
  export type ReasoningUIPart = {
116
116
  type: 'reasoning';
117
117
 
118
+ /**
119
+ * The reasoning part ID.
120
+ */
121
+ id?: string;
122
+
118
123
  /**
119
124
  * The reasoning text.
120
125
  */
@@ -47,6 +47,7 @@ const uiMessagesSchema = lazySchema(() =>
47
47
  }),
48
48
  z.object({
49
49
  type: z.literal('reasoning'),
50
+ id: z.string().optional(),
50
51
  text: z.string(),
51
52
  state: z.enum(['streaming', 'done']).optional(),
52
53
  providerMetadata: providerMetadataSchema.optional(),