ai 6.0.16 → 6.0.17

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
@@ -909,7 +909,7 @@ import {
909
909
  } from "@ai-sdk/provider-utils";
910
910
 
911
911
  // src/version.ts
912
- var VERSION = true ? "6.0.16" : "0.0.0-test";
912
+ var VERSION = true ? "6.0.17" : "0.0.0-test";
913
913
 
914
914
  // src/util/download/download.ts
915
915
  var download = async ({ url }) => {
@@ -5981,7 +5981,7 @@ var DefaultStreamTextResult = class {
5981
5981
  async flush(controller) {
5982
5982
  try {
5983
5983
  if (recordedSteps.length === 0) {
5984
- const error = new NoOutputGeneratedError({
5984
+ const error = (abortSignal == null ? void 0 : abortSignal.aborted) ? abortSignal.reason : new NoOutputGeneratedError({
5985
5985
  message: "No output generated. Check the stream for errors."
5986
5986
  });
5987
5987
  self._finishReason.reject(error);