ai 3.2.21 → 3.2.22

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
@@ -1900,7 +1900,7 @@ var StreamTextResult = class {
1900
1900
  controller.enqueue(chunk.textDelta);
1901
1901
  }
1902
1902
  } else if (chunk.type === "error") {
1903
- throw chunk.error;
1903
+ controller.error(chunk.error);
1904
1904
  }
1905
1905
  }
1906
1906
  });