@ai-sdk/amazon-bedrock 5.0.0-beta.20 → 5.0.0-beta.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
@@ -380,6 +380,7 @@ import {
380
380
  } from "@ai-sdk/provider";
381
381
  import {
382
382
  convertToBase64,
383
+ isProviderReference,
383
384
  parseProviderOptions,
384
385
  stripFileExtension
385
386
  } from "@ai-sdk/provider-utils";
@@ -457,6 +458,11 @@ async function convertToBedrockChatMessages(prompt, isMistral = false) {
457
458
  break;
458
459
  }
459
460
  case "file": {
461
+ if (isProviderReference(part.data)) {
462
+ throw new UnsupportedFunctionalityError2({
463
+ functionality: "file parts with provider references"
464
+ });
465
+ }
460
466
  if (part.data instanceof URL) {
461
467
  throw new UnsupportedFunctionalityError2({
462
468
  functionality: "File URL data"
@@ -2057,7 +2063,7 @@ import {
2057
2063
  import { AwsV4Signer } from "aws4fetch";
2058
2064
 
2059
2065
  // src/version.ts
2060
- var VERSION = true ? "5.0.0-beta.20" : "0.0.0-test";
2066
+ var VERSION = true ? "5.0.0-beta.22" : "0.0.0-test";
2061
2067
 
2062
2068
  // src/bedrock-sigv4-fetch.ts
2063
2069
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {