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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.63
4
+
5
+ ### Patch Changes
6
+
7
+ - d0a5807: Preserve reasoning block IDs from UI message streams on reasoning UI parts.
8
+ - dcf33e8: Allow providers without reranking model support to be assigned to `Provider`.
9
+ - Updated dependencies [a4d386d]
10
+ - @ai-sdk/gateway@4.0.50
11
+
3
12
  ## 7.0.62
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -257,7 +257,7 @@ type Provider = {
257
257
  *
258
258
  * @throws {NoSuchModelError} If no such model exists.
259
259
  */
260
- rerankingModel(modelId: string): RerankingModel;
260
+ rerankingModel?(modelId: string): RerankingModel;
261
261
  };
262
262
 
263
263
  /**
@@ -1878,6 +1878,10 @@ type CustomContentUIPart = {
1878
1878
  */
1879
1879
  type ReasoningUIPart = {
1880
1880
  type: 'reasoning';
1881
+ /**
1882
+ * The reasoning part ID.
1883
+ */
1884
+ id?: string;
1881
1885
  /**
1882
1886
  * The reasoning text.
1883
1887
  */
package/dist/index.js CHANGED
@@ -1143,7 +1143,7 @@ import {
1143
1143
  } from "@ai-sdk/provider-utils";
1144
1144
 
1145
1145
  // src/version.ts
1146
- var VERSION = true ? "7.0.62" : "0.0.0-test";
1146
+ var VERSION = true ? "7.0.63" : "0.0.0-test";
1147
1147
 
1148
1148
  // src/util/download/download.ts
1149
1149
  var download = async ({
@@ -7028,6 +7028,7 @@ function processUIMessageStream({
7028
7028
  case "reasoning-start": {
7029
7029
  const reasoningPart = {
7030
7030
  type: "reasoning",
7031
+ id: chunk.id,
7031
7032
  text: "",
7032
7033
  providerMetadata: chunk.providerMetadata,
7033
7034
  state: "streaming"
@@ -11050,6 +11051,7 @@ var uiMessagesSchema = lazySchema2(
11050
11051
  }),
11051
11052
  z.object({
11052
11053
  type: z.literal("reasoning"),
11054
+ id: z.string().optional(),
11053
11055
  text: z.string(),
11054
11056
  state: z.enum(["streaming", "done"]).optional(),
11055
11057
  providerMetadata: providerMetadataSchema.optional()