ai 7.0.62 → 7.0.63

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.
@@ -92,7 +92,7 @@ import {
92
92
  } from "@ai-sdk/provider-utils";
93
93
 
94
94
  // src/version.ts
95
- var VERSION = true ? "7.0.62" : "0.0.0-test";
95
+ var VERSION = true ? "7.0.63" : "0.0.0-test";
96
96
 
97
97
  // src/util/download/download.ts
98
98
  var download = async ({
@@ -116,6 +116,7 @@ Here are the capabilities of popular models:
116
116
 
117
117
  | Provider | Model | Image Input | Object Generation | Tool Usage | Tool Streaming |
118
118
  | -------------------------------------------------- | ------------------------------------------- | ----------- | ----------------- | ---------- | -------------- |
119
+ | [xAI Grok](/providers/ai-sdk-providers/xai) | `grok-4.6` | <Check /> | <Check /> | <Check /> | <Check /> |
119
120
  | [xAI Grok](/providers/ai-sdk-providers/xai) | `grok-4.5` | <Check /> | <Check /> | <Check /> | <Check /> |
120
121
  | [xAI Grok](/providers/ai-sdk-providers/xai) | `grok-4` | <Cross /> | <Check /> | <Check /> | <Check /> |
121
122
  | [xAI Grok](/providers/ai-sdk-providers/xai) | `grok-3` | <Cross /> | <Check /> | <Check /> | <Check /> |
@@ -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": "7.0.62",
3
+ "version": "7.0.63",
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.49",
45
+ "@ai-sdk/gateway": "4.0.50",
46
46
  "@ai-sdk/provider": "4.0.7",
47
47
  "@ai-sdk/provider-utils": "5.0.27"
48
48
  },
@@ -51,5 +51,5 @@ export type Provider = {
51
51
  *
52
52
  * @throws {NoSuchModelError} If no such model exists.
53
53
  */
54
- rerankingModel(modelId: string): RerankingModel;
54
+ rerankingModel?(modelId: string): RerankingModel;
55
55
  };
@@ -484,6 +484,7 @@ export function processUIMessageStream<UI_MESSAGE extends UIMessage>({
484
484
  case 'reasoning-start': {
485
485
  const reasoningPart: ReasoningUIPart = {
486
486
  type: 'reasoning',
487
+ id: chunk.id,
487
488
  text: '',
488
489
  providerMetadata: chunk.providerMetadata,
489
490
  state: 'streaming',
@@ -135,6 +135,11 @@ export type CustomContentUIPart = {
135
135
  export type ReasoningUIPart = {
136
136
  type: 'reasoning';
137
137
 
138
+ /**
139
+ * The reasoning part ID.
140
+ */
141
+ id?: string;
142
+
138
143
  /**
139
144
  * The reasoning text.
140
145
  */
@@ -45,6 +45,7 @@ const uiMessagesSchema = lazySchema(() =>
45
45
  }),
46
46
  z.object({
47
47
  type: z.literal('reasoning'),
48
+ id: z.string().optional(),
48
49
  text: z.string(),
49
50
  state: z.enum(['streaming', 'done']).optional(),
50
51
  providerMetadata: providerMetadataSchema.optional(),