ai 5.0.259 → 5.0.260

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
@@ -727,7 +727,7 @@ import {
727
727
  } from "@ai-sdk/provider-utils";
728
728
 
729
729
  // src/version.ts
730
- var VERSION = true ? "5.0.259" : "0.0.0-test";
730
+ var VERSION = true ? "5.0.260" : "0.0.0-test";
731
731
 
732
732
  // src/util/download/download.ts
733
733
  var download = async ({
@@ -8937,7 +8937,11 @@ function simulateStreamingMiddleware() {
8937
8937
  switch (part.type) {
8938
8938
  case "text": {
8939
8939
  if (part.text.length > 0) {
8940
- controller.enqueue({ type: "text-start", id: String(id) });
8940
+ controller.enqueue({
8941
+ type: "text-start",
8942
+ id: String(id),
8943
+ ...part.providerMetadata != null ? { providerMetadata: part.providerMetadata } : {}
8944
+ });
8941
8945
  controller.enqueue({
8942
8946
  type: "text-delta",
8943
8947
  id: String(id),