bedrock-wrapper 2.9.0 → 2.10.0

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
@@ -2,6 +2,23 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [2.10.0] - 2026-02-20 (Claude Opus 4.6 & Sonnet 4.6)
6
+
7
+ ### ✨ Added
8
+
9
+ - Support for Claude Opus 4.6 and Claude Sonnet 4.6 models
10
+ - Claude-Opus-4-6 (128K max output tokens, vision support, cross-region inference profile)
11
+ - Claude-Sonnet-4-6 (64K max output tokens, vision support, cross-region inference profile)
12
+
13
+ ### ⚙️ Technical Details
14
+
15
+ - **Model IDs**: `us.anthropic.claude-opus-4-6-v1` and `us.anthropic.claude-sonnet-4-6`
16
+ - **Vision Support**: Both models support image inputs
17
+ - **Extended Output**: Both models use the `output-128k-2025-02-19` beta header
18
+ - **API Compatibility**: Both Invoke API and Converse API paths supported
19
+
20
+ ---
21
+
5
22
  ## [2.9.0] - 2026-01-08 (Llama 4 Models)
6
23
 
7
24
  ### ✨ Added
package/README.md CHANGED
@@ -142,6 +142,8 @@ Bedrock Wrapper is an npm package that simplifies the integration of existing Op
142
142
  | Claude-4-5-Opus-Thinking | global.anthropic.claude-opus-4-5-20251101-v1:0 | ✅ |
143
143
  | Claude-4-5-Sonnet | us.anthropic.claude-sonnet-4-5-20250929-v1:0 | ✅ |
144
144
  | Claude-4-5-Sonnet-Thinking | us.anthropic.claude-sonnet-4-5-20250929-v1:0 | ✅ |
145
+ | Claude-Opus-4-6 | us.anthropic.claude-opus-4-6-v1 | ✅ |
146
+ | Claude-Sonnet-4-6 | us.anthropic.claude-sonnet-4-6 | ✅ |
145
147
  | DeepSeek-R1 | us.deepseek.r1-v1:0 | ❌ |
146
148
  | DeepSeek-V3.1 | deepseek.v3-v1:0 | ❌ |
147
149
  | Gemma-3-4b | google.gemma-3-4b-it | ✅ |
@@ -231,7 +233,7 @@ for await (const chunk of bedrockWrapper(awsCreds, openaiChatCompletionsCreateOb
231
233
 
232
234
  ### Image Support
233
235
 
234
- For models with image support (Claude 4+ series including Claude 4.5 Opus, Claude 4.5 Sonnet, Claude 4.5 Haiku, Claude 3.7 Sonnet, Claude 3.5 Sonnet, Claude 3 Haiku, Nova Pro, Nova Lite, Nova 2 Lite, Mistral Large 3, Ministral 3 series, Gemma 3 series, and Llama 4 series), you can include images in your messages using the following format (not all models support system prompts):
236
+ For models with image support (Claude 4+ series including Claude Opus 4.6, Claude Sonnet 4.6, Claude 4.5 Opus, Claude 4.5 Sonnet, Claude 4.5 Haiku, Claude 3.7 Sonnet, Claude 3.5 Sonnet, Claude 3 Haiku, Nova Pro, Nova Lite, Nova 2 Lite, Mistral Large 3, Ministral 3 series, Gemma 3 series, and Llama 4 series), you can include images in your messages using the following format (not all models support system prompts):
235
237
 
236
238
  ```javascript
237
239
  messages = [
@@ -331,6 +333,8 @@ Some AWS Bedrock models have specific parameter restrictions that are automatica
331
333
  #### Claude 4+ Models (Temperature/Top-P Mutual Exclusion)
332
334
 
333
335
  **Affected Models:**
336
+ - Claude-Opus-4-6
337
+ - Claude-Sonnet-4-6
334
338
  - Claude-4-5-Opus & Claude-4-5-Opus-Thinking
335
339
  - Claude-4-5-Sonnet & Claude-4-5-Sonnet-Thinking
336
340
  - Claude-4-5-Haiku & Claude-4-5-Haiku-Thinking
package/bedrock-models.js CHANGED
@@ -6,6 +6,62 @@
6
6
  // https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/cross-region-inference
7
7
 
8
8
  export const bedrock_models = [
9
+ {
10
+ // =====================
11
+ // == Claude Opus 4.6 ==
12
+ // =====================
13
+ "modelName": "Claude-Opus-4-6",
14
+ // "modelId": "anthropic.claude-opus-4-6-v1", // single-region
15
+ "modelId": "us.anthropic.claude-opus-4-6-v1", // cross-region inference profile
16
+ "vision": true,
17
+ "messages_api": true,
18
+ "system_as_separate_field": true,
19
+ "display_role_names": true,
20
+ "max_tokens_param_name": "max_tokens",
21
+ "max_supported_response_tokens": 131072,
22
+ "stop_sequences_param_name": "stop_sequences",
23
+ "response_chunk_element": "delta.text",
24
+ "response_nonchunk_element": "content[0].text",
25
+ "thinking_response_chunk_element": "delta.thinking",
26
+ "thinking_response_nonchunk_element": "content[0].thinking",
27
+ "special_request_schema": {
28
+ "anthropic_version": "bedrock-2023-05-31",
29
+ "anthropic_beta": ["output-128k-2025-02-19"],
30
+ },
31
+ "image_support": {
32
+ "max_image_size": 20971520, // 20MB
33
+ "supported_formats": ["jpeg", "png", "gif", "webp"],
34
+ "max_images_per_request": 10
35
+ }
36
+ },
37
+ {
38
+ // =======================
39
+ // == Claude Sonnet 4.6 ==
40
+ // =======================
41
+ "modelName": "Claude-Sonnet-4-6",
42
+ // "modelId": "anthropic.claude-sonnet-4-6", // single-region
43
+ "modelId": "us.anthropic.claude-sonnet-4-6", // cross-region inference profile
44
+ "vision": true,
45
+ "messages_api": true,
46
+ "system_as_separate_field": true,
47
+ "display_role_names": true,
48
+ "max_tokens_param_name": "max_tokens",
49
+ "max_supported_response_tokens": 65536,
50
+ "stop_sequences_param_name": "stop_sequences",
51
+ "response_chunk_element": "delta.text",
52
+ "response_nonchunk_element": "content[0].text",
53
+ "thinking_response_chunk_element": "delta.thinking",
54
+ "thinking_response_nonchunk_element": "content[0].thinking",
55
+ "special_request_schema": {
56
+ "anthropic_version": "bedrock-2023-05-31",
57
+ "anthropic_beta": ["output-128k-2025-02-19"],
58
+ },
59
+ "image_support": {
60
+ "max_image_size": 20971520, // 20MB
61
+ "supported_formats": ["jpeg", "png", "gif", "webp"],
62
+ "max_images_per_request": 10
63
+ }
64
+ },
9
65
  {
10
66
  // ======================
11
67
  // == Claude 4.5 Opus ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-wrapper",
3
- "version": "2.9.0",
3
+ "version": "2.10.0",
4
4
  "description": "🪨 Bedrock Wrapper is an npm package that simplifies the integration of existing OpenAI-compatible API objects with AWS Bedrock's serverless inference LLMs.",
5
5
  "homepage": "https://www.equilllabs.com/projects/bedrock-wrapper",
6
6
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "author": "",
42
42
  "license": "ISC",
43
43
  "dependencies": {
44
- "@aws-sdk/client-bedrock-runtime": "^3.943.0",
45
- "dotenv": "^17.2.3",
44
+ "@aws-sdk/client-bedrock-runtime": "^3.994.0",
45
+ "dotenv": "^17.3.1",
46
46
  "sharp": "^0.34.5"
47
47
  },
48
48
  "devDependencies": {