bedrock-wrapper 2.4.3 → 2.4.4

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,6 +1,12 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [2.4.4] - 2025-08-05 (Claude 4.1 Opus)
5
+ ### Added
6
+ - Support for Claude 4.1 Opus models
7
+ - Claude-4-1-Opus
8
+ - Claude-4-1-Opus-Thinking
9
+
4
10
  ## [2.4.3] - 2025-07-31 (Stop Sequences Fixes)
5
11
  ### Fixed
6
12
  - **Critical Discovery**: Removed stop sequences support from Llama models
package/README.md CHANGED
@@ -104,19 +104,21 @@ Bedrock Wrapper is an npm package that simplifies the integration of existing Op
104
104
 
105
105
  | modelName | AWS Model Id | Image |
106
106
  |----------------------------|----------------------------------------------|-------|
107
- | Claude-4-Opus | us.anthropic.claude-opus-4-20250514-v1:0 | ✅ |
108
- | Claude-4-Opus-Thinking | us.anthropic.claude-opus-4-20250514-v1:0 | ✅ |
109
- | Claude-4-Sonnet | us.anthropic.claude-sonnet-4-20250514-v1:0 | ✅ |
110
- | Claude-4-Sonnet-Thinking | us.anthropic.claude-sonnet-4-20250514-v1:0 | ✅ |
107
+ | Claude-4-1-Opus | us.anthropic.claude-opus-4-1-20250805-v1:0 | ✅ |
108
+ | Claude-4-1-Opus-Thinking | us.anthropic.claude-opus-4-1-20250805-v1:0 | ✅ |
109
+ | Claude-4-Opus | us.anthropic.claude-opus-4-20250514-v1:0 | ✅ |
110
+ | Claude-4-Opus-Thinking | us.anthropic.claude-opus-4-20250514-v1:0 | ✅ |
111
+ | Claude-4-Sonnet | us.anthropic.claude-sonnet-4-20250514-v1:0 | ✅ |
112
+ | Claude-4-Sonnet-Thinking | us.anthropic.claude-sonnet-4-20250514-v1:0 | ✅ |
111
113
  | Claude-3-7-Sonnet-Thinking | us.anthropic.claude-3-7-sonnet-20250219-v1:0 | ✅ |
112
114
  | Claude-3-7-Sonnet | us.anthropic.claude-3-7-sonnet-20250219-v1:0 | ✅ |
113
115
  | Claude-3-5-Sonnet-v2 | anthropic.claude-3-5-sonnet-20241022-v2:0 | ✅ |
114
116
  | Claude-3-5-Sonnet | anthropic.claude-3-5-sonnet-20240620-v1:0 | ✅ |
115
117
  | Claude-3-5-Haiku | anthropic.claude-3-5-haiku-20241022-v1:0 | ❌ |
116
118
  | Claude-3-Haiku | anthropic.claude-3-haiku-20240307-v1:0 | ✅ |
117
- | Nova-Pro | us.amazon.nova-pro-v1:0 | ✅ |
118
- | Nova-Lite | us.amazon.nova-lite-v1:0 | ✅ |
119
- | Nova-Micro | us.amazon.nova-micro-v1:0 | ❌ |
119
+ | Nova-Pro | us.amazon.nova-pro-v1:0 | ✅ |
120
+ | Nova-Lite | us.amazon.nova-lite-v1:0 | ✅ |
121
+ | Nova-Micro | us.amazon.nova-micro-v1:0 | ❌ |
120
122
  | Llama-3-3-70b | us.meta.llama3-3-70b-instruct-v1:0 | ❌ |
121
123
  | Llama-3-2-1b | us.meta.llama3-2-1b-instruct-v1:0 | ❌ |
122
124
  | Llama-3-2-3b | us.meta.llama3-2-3b-instruct-v1:0 | ❌ |
package/bedrock-models.js CHANGED
@@ -6,6 +6,66 @@
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 4.1 Opus ==
12
+ // =====================
13
+ "modelName": "Claude-4-1-Opus",
14
+ // "modelId": "anthropic.claude-opus-4-1-20250805-v1:0",
15
+ "modelId": "us.anthropic.claude-opus-4-1-20250805-v1:0",
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 4.1 Opus Thinking ==
40
+ // ==============================
41
+ "modelName": "Claude-4-1-Opus-Thinking",
42
+ // "modelId": "anthropic.claude-opus-4-1-20250805-v1:0",
43
+ "modelId": "us.anthropic.claude-opus-4-1-20250805-v1:0",
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": 131072,
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
+ "thinking": {
59
+ "type": "enabled",
60
+ "budget_tokens": 16000
61
+ },
62
+ },
63
+ "image_support": {
64
+ "max_image_size": 20971520, // 20MB
65
+ "supported_formats": ["jpeg", "png", "gif", "webp"],
66
+ "max_images_per_request": 10
67
+ }
68
+ },
9
69
  {
10
70
  // ====================
11
71
  // == Claude 4 Opus ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-wrapper",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
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": {
@@ -33,11 +33,11 @@
33
33
  "author": "",
34
34
  "license": "ISC",
35
35
  "dependencies": {
36
- "@aws-sdk/client-bedrock-runtime": "^3.857.0",
36
+ "@aws-sdk/client-bedrock-runtime": "^3.861.0",
37
37
  "dotenv": "^17.2.1",
38
38
  "sharp": "^0.34.3"
39
39
  },
40
40
  "devDependencies": {
41
- "chalk": "^5.4.1"
41
+ "chalk": "^5.5.0"
42
42
  }
43
43
  }
@@ -188,6 +188,7 @@ async function main() {
188
188
 
189
189
  // Test a subset of models for efficiency (you can test all if needed)
190
190
  const modelsToTest = [
191
+ "Claude-4-1-Opus",
191
192
  "Claude-3-5-Sonnet-v2",
192
193
  "Claude-3-Haiku",
193
194
  "Nova-Pro",
@@ -1,51 +0,0 @@
1
- [
2
- {
3
- "session_id": "e0b34b2c-ee9a-4813-893a-82d47d3d5141",
4
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e0b34b2c-ee9a-4813-893a-82d47d3d5141.jsonl",
5
- "cwd": "C:\\git\\bedrock-wrapper",
6
- "hook_event_name": "Notification",
7
- "message": "Claude is waiting for your input"
8
- },
9
- {
10
- "session_id": "e0b34b2c-ee9a-4813-893a-82d47d3d5141",
11
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e0b34b2c-ee9a-4813-893a-82d47d3d5141.jsonl",
12
- "cwd": "C:\\git\\bedrock-wrapper",
13
- "hook_event_name": "Notification",
14
- "message": "Claude is waiting for your input"
15
- },
16
- {
17
- "session_id": "e0b34b2c-ee9a-4813-893a-82d47d3d5141",
18
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e0b34b2c-ee9a-4813-893a-82d47d3d5141.jsonl",
19
- "cwd": "C:\\git\\bedrock-wrapper",
20
- "hook_event_name": "Notification",
21
- "message": "Claude is waiting for your input"
22
- },
23
- {
24
- "session_id": "e0b34b2c-ee9a-4813-893a-82d47d3d5141",
25
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e0b34b2c-ee9a-4813-893a-82d47d3d5141.jsonl",
26
- "cwd": "C:\\git\\bedrock-wrapper",
27
- "hook_event_name": "Notification",
28
- "message": "Claude is waiting for your input"
29
- },
30
- {
31
- "session_id": "e0b34b2c-ee9a-4813-893a-82d47d3d5141",
32
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e0b34b2c-ee9a-4813-893a-82d47d3d5141.jsonl",
33
- "cwd": "C:\\git\\bedrock-wrapper",
34
- "hook_event_name": "Notification",
35
- "message": "Claude is waiting for your input"
36
- },
37
- {
38
- "session_id": "e0b34b2c-ee9a-4813-893a-82d47d3d5141",
39
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e0b34b2c-ee9a-4813-893a-82d47d3d5141.jsonl",
40
- "cwd": "C:\\git\\bedrock-wrapper",
41
- "hook_event_name": "Notification",
42
- "message": "Claude is waiting for your input"
43
- },
44
- {
45
- "session_id": "e0b34b2c-ee9a-4813-893a-82d47d3d5141",
46
- "transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\e0b34b2c-ee9a-4813-893a-82d47d3d5141.jsonl",
47
- "cwd": "C:\\git\\bedrock-wrapper",
48
- "hook_event_name": "Notification",
49
- "message": "Claude is waiting for your input"
50
- }
51
- ]