litellm/tests/unit/llms/bedrock
kenneth-berri 1b207c9b37
fix(embeddings): send request-shaped extra_body fields at the provider's documented path (#54273)
* fix(embeddings): send extra_body fields at the documented path for Marengo 3, SageMaker Cohere, Vertex and Gemini

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

* refactor(bedrock): strip Marengo 3 placed fields from modelInput without recursion

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

* fix(embeddings): keep extra_body items aligned on partial cache hits, merge nested item settings, keep Cohere image type

* fix(caching): send the cut-down extra_body items with the uncached embedding inputs

* fix(caching): key the embedding cache write on the caller's extra_body after a partial hit

* fix(caching): key each cached embedding on the extra_body item written for its input

* fix(embeddings): let a per-input extra_body item win over a shared field and keep per-input caching to Vertex and Gemini

* fix(gemini): keep a shared extra_body config beside the config of one request

* fix(gemini): resolve each request's extra_body settings before the named params and the video check read them

* refactor(gemini): build each embed request in a typed helper and annotate the new cache tests

* test(caching): script Gemini with respx instead of replacing get_async_httpx_client

* test(caching): annotate the locals and embedder parameters of the per-input cache tests

* test(vertex): cover the fine-tuned endpoint in the request-shaped extra_body regression

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-25 13:29:52 -08:00
..
batches fix(batches): keep the endpoint a batch was created for on retrieve, cancel and cost polling (#50784) 2026-11-24 05:42:08 -08:00
chat fix(gateway): serve messages drop, summary and timeout settings like Python (#51236) 2026-11-25 09:26:12 +00:00
count_tokens fix(token_counter): count an Anthropic fallback block as zero on every count route (#54006) 2026-11-24 03:32:34 -08:00
embed fix(embeddings): send request-shaped extra_body fields at the provider's documented path (#54273) 2026-11-25 13:29:52 -08:00
files fix(anthropic): answer 400 naming a malformed thinking_blocks instead of 500 (#53762) 2026-11-24 03:06:47 -08:00
image
image_edit
image_generation
invoke_agent fix(sagemaker,bedrock): answer 502 when a 200 AWS event stream decodes to no events or ends mid-frame (#53482) 2026-11-22 23:59:32 +00:00
messages fix(bedrock): stop naming typed tools on Bedrock invoke /v1/messages so toolset entries reach Claude (#51756) 2026-11-24 02:44:38 -08:00
passthrough feat(bedrock): derive STS session tags and session name from caller identity (#52978) 2026-11-19 17:11:09 -08:00
realtime fix(realtime): enforce TPM limits during realtime sessions (#53689) 2026-11-24 05:15:04 -08:00
rerank
responses fix(bedrock): send native chat and Responses calls to aws_bedrock_runtime_endpoint like Converse (#50582) 2026-11-19 16:40:23 -08:00
search
vector_stores fix(bedrock): map OpenAI vector store search filters to AWS RetrievalFilter (#51291) 2026-11-14 13:39:43 -05:00
__init__.py
event_loop_probe.py
slow_upstream.py
test_anthropic_beta_support.py
test_base_aws_llm.py fix(bedrock): treat an empty api_base or runtime endpoint as unset (#51244) 2026-11-24 00:36:07 +00:00
test_bedrock_common_utils.py fix(bedrock): keep shared $defs in Claude tool schemas and bound inlining for other models (#51137) 2026-11-24 04:42:19 -08:00
test_bedrock_model_listing.py fix(bedrock): discover models through the configured control-plane endpoint (#50840) 2026-11-24 14:09:25 -08:00
test_bedrock_ssl_verify.py
test_claude_platform_provider.py fix(anthropic): drop unsigned thinking blocks before /v1/messages reaches Claude (#51793) 2026-11-24 05:30:55 +00:00
test_converse_context_management.py
test_cost_calculation.py feat(cost): price Claude token calls, budget holds and auth price checks in Rust (#52484) 2026-11-23 22:00:28 +00:00
test_cross_region_inference_profile_mapping.py
test_guardrail_attachments.py
test_mantle.py feat(messages): serve bedrock mantle messages on rust only (#52328) 2026-11-18 17:36:06 -08:00
test_nova_imported_models.py
test_request_metadata.py feat(messages): serve bedrock claude_platform messages on rust only (#52681) 2026-11-19 14:34:02 -08:00
test_session_identity.py feat(bedrock): derive STS session tags and session name from caller identity (#52978) 2026-11-19 17:11:09 -08:00
test_web_identity_session_policy.py fix(bedrock): discover models through the configured control-plane endpoint (#50840) 2026-11-24 14:09:25 -08:00