bedrock-wrapper 2.6.1 → 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 CHANGED
@@ -1,6 +1,16 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
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
+
4
14
  ## [2.6.1] - 2025-09-30 (Claude Sonnet 4.5)
5
15
  ### Added
6
16
  - Support for Claude Sonnet 4.5 models
package/README.md CHANGED
@@ -128,6 +128,8 @@ Bedrock Wrapper is an npm package that simplifies the integration of existing Op
128
128
  | Claude-4-Opus-Thinking | us.anthropic.claude-opus-4-20250514-v1:0 | ✅ |
129
129
  | Claude-4-5-Sonnet | us.anthropic.claude-sonnet-4-5-20250929-v1:0 | ✅ |
130
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 = [
@@ -267,7 +269,8 @@ Some AWS Bedrock models have specific parameter restrictions that are automatica
267
269
 
268
270
  **Affected Models:**
269
271
  - Claude-4-5-Sonnet & Claude-4-5-Sonnet-Thinking
270
- - Claude-4-Sonnet & Claude-4-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
 
package/bedrock-models.js CHANGED
@@ -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
+ ]