litellm/tests/unit/llms/bedrock/embed
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
..
__init__.py
test_amazon_nova_transformation.py fix(bedrock): accept the OpenAI SDK default encoding_format on Nova embeddings (#53755) 2026-11-23 10:00:50 -08:00
test_bedrock_async_invoke_embedding.py
test_bedrock_embedding.py fix(embeddings): send request-shaped extra_body fields at the provider's documented path (#54273) 2026-11-25 13:29:52 -08:00
test_embedding.py
test_twelvelabs_marengo_3_transformation.py