litellm/tests/unit/llms/bedrock/files
kenneth-berri 3b6f7fd088
fix(bedrock): dispatch stored Responses get, cancel, and delete to Bedrock Runtime and Mantle (#56150)
* fix(bedrock): dispatch stored Responses get, cancel, and delete to Bedrock Runtime

Stored response lookups carry no model, so the Bedrock provider config resolved to None and the calls were rejected before any request was sent. Return the native Bedrock Runtime Responses config for those lookups and sign the lifecycle requests with SigV4 unless a Bedrock bearer token is in use.

Fixes #55897

* test(bedrock): mark stored response test locals Final

* fix(bedrock): dispatch stored response get, cancel, and delete on Mantle, and keep refusing list input items

Bedrock Runtime and Bedrock Mantle have no input items route, so that call
fails locally again. Mantle get, cancel, and delete are addressed through the
deployment's model, which picks the /openai/v1 or /v1 path, and are SigV4
signed or sent with the bearer token.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(responses): resolve the stored response config from a provider-prefixed deployment model

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(bedrock_mantle): sign stored response requests without reaching into the signer's private header filter

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-12-04 14:23:54 -08:00
..
__init__.py test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
expected_bedrock_batch_completions.jsonl test(llms): migrate bedrock, baseten and base_llm batch tests to tests/unit 2026-09-20 07:51:50 +00:00
expected_bedrock_batch_embeddings.jsonl test(llms): migrate bedrock, baseten and base_llm batch tests to tests/unit 2026-09-20 07:51:50 +00:00
input_batch_completions.jsonl test(llms): migrate bedrock, baseten and base_llm batch tests to tests/unit 2026-09-20 07:51:50 +00:00
input_batch_embeddings.jsonl test(llms): migrate bedrock, baseten and base_llm batch tests to tests/unit 2026-09-20 07:51:50 +00:00
test_bedrock_files_handler.py fix(bedrock): dispatch stored Responses get, cancel, and delete to Bedrock Runtime and Mantle (#56150) 2026-12-04 14:23:54 -08:00
test_bedrock_files_transformation.py fix(bedrock): dispatch stored Responses get, cancel, and delete to Bedrock Runtime and Mantle (#56150) 2026-12-04 14:23:54 -08:00