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.js CHANGED
@@ -1989,7 +1989,7 @@ var StreamTextResult = class {
1989
1989
  controller.enqueue(chunk.textDelta);
1990
1990
  }
1991
1991
  } else if (chunk.type === "error") {
1992
- throw chunk.error;
1992
+ controller.error(chunk.error);
1993
1993
  }
1994
1994
  }
1995
1995
  });