@ai-sdk/provider-utils 4.0.47 → 4.0.49

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
@@ -447,6 +447,9 @@ async function getDefaultDownloadFetch() {
447
447
  return safeNodeFetchPromise != null ? safeNodeFetchPromise : safeNodeFetchPromise = createSafeNodeFetch();
448
448
  }
449
449
  function isNodeDefaultFetch(fetch) {
450
+ if (typeof fetch !== "function") {
451
+ return false;
452
+ }
450
453
  const source = Function.prototype.toString.call(fetch);
451
454
  return source.includes("internal/deps/undici") || source.includes("lazy loading of undici");
452
455
  }
@@ -628,6 +631,11 @@ async function downloadBlob(url, options) {
628
631
  }
629
632
  }
630
633
 
634
+ // src/embedding-model-capabilities.ts
635
+ var EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL = /* @__PURE__ */ Symbol.for(
636
+ "vercel.ai.embeddingModel.maxInputBytesPerCall"
637
+ );
638
+
631
639
  // src/generate-id.ts
632
640
  import { InvalidArgumentError } from "@ai-sdk/provider";
633
641
  var createIdGenerator = ({
@@ -790,7 +798,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
790
798
  }
791
799
 
792
800
  // src/version.ts
793
- var VERSION = true ? "4.0.47" : "0.0.0-test";
801
+ var VERSION = true ? "4.0.49" : "0.0.0-test";
794
802
 
795
803
  // src/get-from-api.ts
796
804
  var getOriginalFetch = () => globalThis.fetch;
@@ -3025,6 +3033,7 @@ export {
3025
3033
  DEFAULT_MAX_DOWNLOAD_SIZE,
3026
3034
  DelayedPromise,
3027
3035
  DownloadError,
3036
+ EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL as EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL,
3028
3037
  EventSourceParserStream2 as EventSourceParserStream,
3029
3038
  VERSION,
3030
3039
  asSchema,