litellm/tests/test_litellm/llms/bedrock
Giulio Leone 1c3787264b
fix(bedrock): strip output_config from Bedrock Invoke requests (#23042)
* fix(bedrock): strip output_config from Bedrock Invoke requests

Bedrock Invoke API does not support the output_config parameter
(added to Anthropic Messages API). Requests with output_config cause
400 errors: 'extraneous key [output_config] is not permitted'.

Strip output_config in both Bedrock Invoke transformation layers
(messages and chat), consistent with how output_format is already
handled and how VertexAI strips both parameters.

Fixes: https://github.com/BerriAI/litellm/issues/22797

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test(bedrock): add output_config test for chat/invoke path

Addresses review feedback — the chat/invoke_transformations path now has
symmetric test coverage matching the messages/invoke_transformations path.

Fixes: https://github.com/BerriAI/litellm/issues/22797

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: giulio-leone <6887247+giulio-leone@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 19:33:53 -08:00
..
chat fix(bedrock): strip output_config from Bedrock Invoke requests (#23042) 2026-03-07 19:33:53 -08: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): strip output_config from Bedrock Invoke requests (#23042) 2026-03-07 19:33:53 -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