@ai-sdk/amazon-bedrock 5.0.0-beta.29 → 5.0.0-beta.30

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.29",
3
+ "version": "5.0.0-beta.30",
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.25",
41
+ "@ai-sdk/anthropic": "4.0.0-beta.26",
42
42
  "@ai-sdk/provider": "4.0.0-beta.10",
43
- "@ai-sdk/provider-utils": "5.0.0-beta.17"
43
+ "@ai-sdk/provider-utils": "5.0.0-beta.18"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "20.17.24",
@@ -261,7 +261,13 @@ export function createBedrockAnthropic(
261
261
  }`,
262
262
 
263
263
  transformRequestBody: (args, betas) => {
264
- const { model, stream, tool_choice, tools, ...rest } = args;
264
+ const {
265
+ model: _model,
266
+ stream: _stream,
267
+ tool_choice,
268
+ tools,
269
+ ...rest
270
+ } = args;
265
271
 
266
272
  const transformedToolChoice =
267
273
  tool_choice != null
@@ -370,12 +370,6 @@ export async function convertToBedrockChatMessages(
370
370
  return { system, messages };
371
371
  }
372
372
 
373
- function isBedrockImageFormat(format: string): format is BedrockImageFormat {
374
- return Object.values(BEDROCK_IMAGE_MIME_TYPES).includes(
375
- format as BedrockImageFormat,
376
- );
377
- }
378
-
379
373
  function getBedrockImageFormat(mimeType?: string): BedrockImageFormat {
380
374
  if (!mimeType) {
381
375
  throw new UnsupportedFunctionalityError({