ai 6.0.165 → 6.0.166

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/dist/index.mjs CHANGED
@@ -1143,7 +1143,7 @@ import {
1143
1143
  } from "@ai-sdk/provider-utils";
1144
1144
 
1145
1145
  // src/version.ts
1146
- var VERSION = true ? "6.0.165" : "0.0.0-test";
1146
+ var VERSION = true ? "6.0.166" : "0.0.0-test";
1147
1147
 
1148
1148
  // src/util/download/download.ts
1149
1149
  var download = async ({
@@ -7801,12 +7801,15 @@ var DefaultStreamTextResult = class {
7801
7801
  });
7802
7802
  break;
7803
7803
  }
7804
- case "reasoning-start": {
7805
- controller.enqueue({
7806
- type: "reasoning-start",
7807
- id: part.id,
7808
- ...part.providerMetadata != null ? { providerMetadata: part.providerMetadata } : {}
7809
- });
7804
+ case "reasoning-start":
7805
+ case "reasoning-end": {
7806
+ if (sendReasoning) {
7807
+ controller.enqueue({
7808
+ type: partType,
7809
+ id: part.id,
7810
+ ...part.providerMetadata != null ? { providerMetadata: part.providerMetadata } : {}
7811
+ });
7812
+ }
7810
7813
  break;
7811
7814
  }
7812
7815
  case "reasoning-delta": {
@@ -7820,14 +7823,6 @@ var DefaultStreamTextResult = class {
7820
7823
  }
7821
7824
  break;
7822
7825
  }
7823
- case "reasoning-end": {
7824
- controller.enqueue({
7825
- type: "reasoning-end",
7826
- id: part.id,
7827
- ...part.providerMetadata != null ? { providerMetadata: part.providerMetadata } : {}
7828
- });
7829
- break;
7830
- }
7831
7826
  case "file": {
7832
7827
  controller.enqueue({
7833
7828
  type: "file",