bedrock-wrapper 2.6.0 → 2.6.2
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 +11 -1
- package/README.md +10 -7
- package/bedrock-models.js +68 -2
- package/logs/ab845abf-67e2-4cb9-95e2-3942e38326c7/notification.json +16 -0
- package/logs/ab845abf-67e2-4cb9-95e2-3942e38326c7/post_tool_use.json +560 -0
- package/logs/ab845abf-67e2-4cb9-95e2-3942e38326c7/pre_tool_use.json +186 -0
- package/logs/ab845abf-67e2-4cb9-95e2-3942e38326c7/stop.json +18 -0
- package/logs/ab845abf-67e2-4cb9-95e2-3942e38326c7/subagent_stop.json +10 -0
- package/logs/ab845abf-67e2-4cb9-95e2-3942e38326c7/user_prompt_submit.json +18 -0
- package/package.json +2 -2
- package/logs/e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3/notification.json +0 -72
- package/logs/e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3/post_tool_use.json +0 -9083
- package/logs/e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3/pre_tool_use.json +0 -2971
- package/logs/e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3/stop.json +0 -93
- package/logs/e4cf59ef-9d22-45bf-9c6c-53e3cb9efda3/user_prompt_submit.json +0 -93
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
## [2.6.
|
|
4
|
+
## [2.6.2] - 2025-10-16 (Claude Haiku 4.5)
|
|
5
|
+
### Added
|
|
6
|
+
- Support for Claude Haiku 4.5 models
|
|
7
|
+
- Claude-4-5-Haiku
|
|
8
|
+
- Claude-4-5-Haiku-Thinking
|
|
9
|
+
- Extended thinking support for Haiku 4.5 (first Haiku model with thinking capabilities)
|
|
10
|
+
- Vision support for Haiku 4.5 (20MB max image size, JPEG/PNG/GIF/WebP formats)
|
|
11
|
+
- 64,000 max output tokens (significant increase from Claude 3.5 Haiku's 8,192)
|
|
12
|
+
- Temperature/Top-P mutual exclusion parameter handling for Haiku 4.5 models
|
|
13
|
+
|
|
14
|
+
## [2.6.1] - 2025-09-30 (Claude Sonnet 4.5)
|
|
5
15
|
### Added
|
|
6
16
|
- Support for Claude Sonnet 4.5 models
|
|
7
17
|
- Claude-4-5-Sonnet
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Bedrock Wrapper is an npm package that simplifies the integration of existing Op
|
|
|
39
39
|
```javascript
|
|
40
40
|
const openaiChatCompletionsCreateObject = {
|
|
41
41
|
"messages": messages,
|
|
42
|
-
"model": "Claude-4
|
|
42
|
+
"model": "Claude-4-5-Sonnet",
|
|
43
43
|
"max_tokens": LLM_MAX_GEN_TOKENS,
|
|
44
44
|
"stream": true,
|
|
45
45
|
"temperature": LLM_TEMPERATURE,
|
|
@@ -126,8 +126,10 @@ Bedrock Wrapper is an npm package that simplifies the integration of existing Op
|
|
|
126
126
|
| Claude-4-1-Opus-Thinking | us.anthropic.claude-opus-4-1-20250805-v1:0 | ✅ |
|
|
127
127
|
| Claude-4-Opus | us.anthropic.claude-opus-4-20250514-v1:0 | ✅ |
|
|
128
128
|
| Claude-4-Opus-Thinking | us.anthropic.claude-opus-4-20250514-v1:0 | ✅ |
|
|
129
|
-
| Claude-4
|
|
130
|
-
| Claude-4
|
|
129
|
+
| Claude-4-5-Sonnet | us.anthropic.claude-sonnet-4-5-20250929-v1:0 | ✅ |
|
|
130
|
+
| Claude-4-5-Sonnet-Thinking | us.anthropic.claude-sonnet-4-5-20250929-v1:0 | ✅ |
|
|
131
|
+
| Claude-4-5-Haiku | us.anthropic.claude-haiku-4-5-20251001-v1:0 | ✅ |
|
|
132
|
+
| Claude-4-5-Haiku-Thinking | us.anthropic.claude-haiku-4-5-20251001-v1:0 | ✅ |
|
|
131
133
|
| Claude-4-Sonnet | us.anthropic.claude-sonnet-4-20250514-v1:0 | ✅ |
|
|
132
134
|
| Claude-4-Sonnet-Thinking | us.anthropic.claude-sonnet-4-20250514-v1:0 | ✅ |
|
|
133
135
|
| Claude-3-7-Sonnet-Thinking | us.anthropic.claude-3-7-sonnet-20250219-v1:0 | ✅ |
|
|
@@ -170,7 +172,7 @@ Please modify the `bedrock_models.js` file and submit a PR 🏆 or create an Iss
|
|
|
170
172
|
|
|
171
173
|
### Image Support
|
|
172
174
|
|
|
173
|
-
For models with image support (Claude 4+ series including Claude 4.5 Sonnet, Claude 3.7 Sonnet, Claude 3.5 Sonnet, Claude 3 Haiku, Nova Pro, and Nova Lite), you can include images in your messages using the following format (not all models support system prompts):
|
|
175
|
+
For models with image support (Claude 4+ series including Claude 4.5 Sonnet, Claude 4.5 Haiku, Claude 3.7 Sonnet, Claude 3.5 Sonnet, Claude 3 Haiku, Nova Pro, and Nova Lite), you can include images in your messages using the following format (not all models support system prompts):
|
|
174
176
|
|
|
175
177
|
```javascript
|
|
176
178
|
messages = [
|
|
@@ -266,8 +268,9 @@ Some AWS Bedrock models have specific parameter restrictions that are automatica
|
|
|
266
268
|
#### Claude 4+ Models (Temperature/Top-P Mutual Exclusion)
|
|
267
269
|
|
|
268
270
|
**Affected Models:**
|
|
269
|
-
- Claude-4
|
|
270
|
-
- Claude-4-
|
|
271
|
+
- Claude-4-5-Sonnet & Claude-4-5-Sonnet-Thinking
|
|
272
|
+
- Claude-4-5-Haiku & Claude-4-5-Haiku-Thinking
|
|
273
|
+
- Claude-4-Sonnet & Claude-4-Sonnet-Thinking
|
|
271
274
|
- Claude-4-Opus & Claude-4-Opus-Thinking
|
|
272
275
|
- Claude-4-1-Opus & Claude-4-1-Opus-Thinking
|
|
273
276
|
|
|
@@ -281,7 +284,7 @@ Some AWS Bedrock models have specific parameter restrictions that are automatica
|
|
|
281
284
|
```javascript
|
|
282
285
|
const request = {
|
|
283
286
|
messages: [{ role: "user", content: "Hello" }],
|
|
284
|
-
model: "Claude-4
|
|
287
|
+
model: "Claude-4-5-Sonnet",
|
|
285
288
|
temperature: 0.7, // ✅ Kept
|
|
286
289
|
top_p: 0.9 // ❌ Automatically removed
|
|
287
290
|
};
|
package/bedrock-models.js
CHANGED
|
@@ -130,7 +130,7 @@ export const bedrock_models = [
|
|
|
130
130
|
// =======================
|
|
131
131
|
// == Claude 4.5 Sonnet ==
|
|
132
132
|
// =======================
|
|
133
|
-
"modelName": "Claude-4
|
|
133
|
+
"modelName": "Claude-4-5-Sonnet",
|
|
134
134
|
// "modelId": "anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
135
135
|
"modelId": "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
136
136
|
"vision": true,
|
|
@@ -161,7 +161,7 @@ export const bedrock_models = [
|
|
|
161
161
|
// ================================
|
|
162
162
|
// == Claude 4.5 Sonnet Thinking ==
|
|
163
163
|
// ================================
|
|
164
|
-
"modelName": "Claude-4
|
|
164
|
+
"modelName": "Claude-4-5-Sonnet-Thinking",
|
|
165
165
|
// "modelId": "anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
166
166
|
"modelId": "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
167
167
|
"vision": true,
|
|
@@ -192,6 +192,72 @@ export const bedrock_models = [
|
|
|
192
192
|
"max_images_per_request": 10
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
+
{
|
|
196
|
+
// ======================
|
|
197
|
+
// == Claude 4.5 Haiku ==
|
|
198
|
+
// ======================
|
|
199
|
+
"modelName": "Claude-4-5-Haiku",
|
|
200
|
+
// "modelId": "anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
201
|
+
"modelId": "us.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
202
|
+
"vision": true,
|
|
203
|
+
"messages_api": true,
|
|
204
|
+
"system_as_separate_field": true,
|
|
205
|
+
"display_role_names": true,
|
|
206
|
+
"max_tokens_param_name": "max_tokens",
|
|
207
|
+
"max_supported_response_tokens": 64000,
|
|
208
|
+
"stop_sequences_param_name": "stop_sequences",
|
|
209
|
+
"response_chunk_element": "delta.text",
|
|
210
|
+
"response_nonchunk_element": "content[0].text",
|
|
211
|
+
"thinking_response_chunk_element": "delta.thinking",
|
|
212
|
+
"thinking_response_nonchunk_element": "content[0].thinking",
|
|
213
|
+
"parameter_restrictions": {
|
|
214
|
+
"mutually_exclusive": [["temperature", "top_p"]]
|
|
215
|
+
},
|
|
216
|
+
"special_request_schema": {
|
|
217
|
+
"anthropic_version": "bedrock-2023-05-31",
|
|
218
|
+
"anthropic_beta": ["output-128k-2025-02-19"],
|
|
219
|
+
},
|
|
220
|
+
"image_support": {
|
|
221
|
+
"max_image_size": 20971520, // 20MB
|
|
222
|
+
"supported_formats": ["jpeg", "png", "gif", "webp"],
|
|
223
|
+
"max_images_per_request": 10
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
// ===============================
|
|
228
|
+
// == Claude 4.5 Haiku Thinking ==
|
|
229
|
+
// ===============================
|
|
230
|
+
"modelName": "Claude-4-5-Haiku-Thinking",
|
|
231
|
+
// "modelId": "anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
232
|
+
"modelId": "us.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
233
|
+
"vision": true,
|
|
234
|
+
"messages_api": true,
|
|
235
|
+
"system_as_separate_field": true,
|
|
236
|
+
"display_role_names": true,
|
|
237
|
+
"max_tokens_param_name": "max_tokens",
|
|
238
|
+
"max_supported_response_tokens": 64000,
|
|
239
|
+
"stop_sequences_param_name": "stop_sequences",
|
|
240
|
+
"response_chunk_element": "delta.text",
|
|
241
|
+
"response_nonchunk_element": "content[0].text",
|
|
242
|
+
"thinking_response_chunk_element": "delta.thinking",
|
|
243
|
+
"thinking_response_nonchunk_element": "content[0].thinking",
|
|
244
|
+
"parameter_restrictions": {
|
|
245
|
+
"mutually_exclusive": [["temperature", "top_p"]]
|
|
246
|
+
},
|
|
247
|
+
"special_request_schema": {
|
|
248
|
+
"anthropic_version": "bedrock-2023-05-31",
|
|
249
|
+
"anthropic_beta": ["output-128k-2025-02-19"],
|
|
250
|
+
"thinking": {
|
|
251
|
+
"type": "enabled",
|
|
252
|
+
"budget_tokens": 16000
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
"image_support": {
|
|
256
|
+
"max_image_size": 20971520, // 20MB
|
|
257
|
+
"supported_formats": ["jpeg", "png", "gif", "webp"],
|
|
258
|
+
"max_images_per_request": 10
|
|
259
|
+
}
|
|
260
|
+
},
|
|
195
261
|
{
|
|
196
262
|
// =====================
|
|
197
263
|
// == Claude 4 Sonnet ==
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"session_id": "ab845abf-67e2-4cb9-95e2-3942e38326c7",
|
|
4
|
+
"transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\ab845abf-67e2-4cb9-95e2-3942e38326c7.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": "ab845abf-67e2-4cb9-95e2-3942e38326c7",
|
|
11
|
+
"transcript_path": "C:\\Users\\Justin.Parker\\.claude\\projects\\C--git-bedrock-wrapper\\ab845abf-67e2-4cb9-95e2-3942e38326c7.jsonl",
|
|
12
|
+
"cwd": "C:\\git\\bedrock-wrapper",
|
|
13
|
+
"hook_event_name": "Notification",
|
|
14
|
+
"message": "Claude is waiting for your input"
|
|
15
|
+
}
|
|
16
|
+
]
|