@ai-sdk/amazon-bedrock 5.0.0-beta.20 → 5.0.0-beta.21

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 5.0.0-beta.21
4
+
5
+ ### Patch Changes
6
+
7
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
8
+ - Updated dependencies [c29a26f]
9
+ - @ai-sdk/provider-utils@5.0.0-beta.10
10
+ - @ai-sdk/anthropic@4.0.0-beta.17
11
+ - @ai-sdk/provider@4.0.0-beta.6
12
+
3
13
  ## 5.0.0-beta.20
4
14
 
5
15
  ### Patch Changes
@@ -35,7 +35,7 @@ var import_provider_utils = require("@ai-sdk/provider-utils");
35
35
  var import_aws4fetch = require("aws4fetch");
36
36
 
37
37
  // src/version.ts
38
- var VERSION = true ? "5.0.0-beta.20" : "0.0.0-test";
38
+ var VERSION = true ? "5.0.0-beta.21" : "0.0.0-test";
39
39
 
40
40
  // src/bedrock-sigv4-fetch.ts
41
41
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
@@ -24,7 +24,7 @@ import {
24
24
  import { AwsV4Signer } from "aws4fetch";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "5.0.0-beta.20" : "0.0.0-test";
27
+ var VERSION = true ? "5.0.0-beta.21" : "0.0.0-test";
28
28
 
29
29
  // src/bedrock-sigv4-fetch.ts
30
30
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
package/dist/index.js CHANGED
@@ -454,6 +454,11 @@ async function convertToBedrockChatMessages(prompt, isMistral = false) {
454
454
  break;
455
455
  }
456
456
  case "file": {
457
+ if ((0, import_provider_utils3.isProviderReference)(part.data)) {
458
+ throw new import_provider3.UnsupportedFunctionalityError({
459
+ functionality: "file parts with provider references"
460
+ });
461
+ }
457
462
  if (part.data instanceof URL) {
458
463
  throw new import_provider3.UnsupportedFunctionalityError({
459
464
  functionality: "File URL data"
@@ -2033,7 +2038,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
2033
2038
  var import_aws4fetch = require("aws4fetch");
2034
2039
 
2035
2040
  // src/version.ts
2036
- var VERSION = true ? "5.0.0-beta.20" : "0.0.0-test";
2041
+ var VERSION = true ? "5.0.0-beta.21" : "0.0.0-test";
2037
2042
 
2038
2043
  // src/bedrock-sigv4-fetch.ts
2039
2044
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {