litellm/tests/test_litellm/llms/bedrock
weiguang li 3d027c0f7a
fix(bedrock): filter out custom field from tools to prevent 400 errors (#22861)
Claude Code v2.1.69+ sends `custom: {defer_loading: true}` on tool
definitions. Anthropic's API accepts this field, but Bedrock rejects it
with "Extra inputs are not permitted", causing ~90% of requests to fail.

Strip the `custom` field from each tool in the request body before
sending to Bedrock, in both the Messages API and Chat API invoke paths.

Fixes #22847

Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com>
2026-03-05 13:54:23 -08:00
..
chat fix(bedrock): filter internal json_tool_call when mixed with real tools 2026-02-28 00:18:56 -03:00
count_tokens fix(count_tokens): include system and tools in token counting API requests 2026-02-27 15:39:35 -03:00
embed fix(cost-calc): use per-image pricing for Bedrock multimodal embeddings (#21646) 2026-02-20 08:51:21 -08:00
files fix(bedrock): correct modelInput format for Converse API batch models (#21656) 2026-02-20 22:27:22 -08:00
image fix patch 2025-12-20 14:00:42 +05:30
invoke_agent fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
messages/invoke_transformations fix(bedrock): filter out custom field from tools to prevent 400 errors (#22861) 2026-03-05 13:54:23 -08:00
passthrough Fix : model id encoding for bedrock passthrough 2026-01-12 10:57:17 +05:30
realtime Add nova sonic tests 2026-02-02 12:18:43 +05:30
rerank fix(bedrock): pass timeout param to bedrock rerank http client (#22021) 2026-02-24 09:32:11 -08:00
vector_stores [Feat] UI Vector Stores - Allow adding Vertex RAG Engine, OpenAI, Azure (#12752) 2025-07-18 18:25:26 -07:00
test_anthropic_beta_support.py Update code to handle anthropic beta headers mapping 2026-02-11 12:35:22 +05:30
test_base_aws_llm.py fix env var leakage 2026-02-20 11:52:56 -08:00
test_bedrock_common_utils.py Fix: Support us-gov prefix for AWS GovCloud Bedrock models (#15626) 2025-10-17 13:19:51 -07:00
test_bedrock_ssl_verify.py [Bug]: Add Custom CA certificates to boto3 clients 2026-01-12 09:05:09 +05:30
test_cross_region_inference_profile_mapping.py Fix: Bedrock cross-region inference profile cost calculation (#14566) 2025-09-15 07:10:20 -07:00