Commit 6b0993d
committed
fix: remove double-wrapping of tools_cachepoint_config in _format_tools
`__init__` already calls `_validate_and_format_cache_point` which wraps
the user-supplied `{"type": "default"}` into `{"cachePoint": {"type": "default"}}`.
`_format_tools` was then wrapping it a second time, producing a nested
`{"cachePoint": {"cachePoint": {...}}}` that Bedrock rejects with ParamValidationError.
Fixes #31811 parent 35c9bef commit 6b0993d
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- integrations/amazon_bedrock
- src/haystack_integrations/components/generators/amazon_bedrock/chat
- tests
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments