@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/amazon-bedrock",
3
- "version": "5.0.0-beta.20",
3
+ "version": "5.0.0-beta.22",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -38,9 +38,9 @@
38
38
  "@smithy/eventstream-codec": "^4.0.1",
39
39
  "@smithy/util-utf8": "^4.0.0",
40
40
  "aws4fetch": "^1.0.20",
41
- "@ai-sdk/anthropic": "4.0.0-beta.16",
42
- "@ai-sdk/provider": "4.0.0-beta.5",
43
- "@ai-sdk/provider-utils": "5.0.0-beta.9"
41
+ "@ai-sdk/anthropic": "4.0.0-beta.18",
42
+ "@ai-sdk/provider": "4.0.0-beta.7",
43
+ "@ai-sdk/provider-utils": "5.0.0-beta.11"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "20.17.24",
@@ -7,6 +7,7 @@ import {
7
7
  } from '@ai-sdk/provider';
8
8
  import {
9
9
  convertToBase64,
10
+ isProviderReference,
10
11
  parseProviderOptions,
11
12
  stripFileExtension,
12
13
  } from '@ai-sdk/provider-utils';
@@ -112,6 +113,12 @@ export async function convertToBedrockChatMessages(
112
113
  }
113
114
 
114
115
  case 'file': {
116
+ if (isProviderReference(part.data)) {
117
+ throw new UnsupportedFunctionalityError({
118
+ functionality: 'file parts with provider references',
119
+ });
120
+ }
121
+
115
122
  if (part.data instanceof URL) {
116
123
  // The AI SDK automatically downloads files for user file parts with URLs
117
124
  throw new UnsupportedFunctionalityError({