litellm/tests/unit/llms/sagemaker
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_sagemaker_chat_handler.py
test_sagemaker_chat_transformation.py 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
test_sagemaker_common_utils.py 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
test_sagemaker_completion_handler.py 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
test_sagemaker_embedding_openai.py feat(sagemaker)!: inference components and OpenAI-compatible embeddings (#44985) 2026-10-12 22:25:52 +00:00
test_sagemaker_embedding_role_assumption.py
test_sagemaker_embedding_voyage.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_sagemaker_nova_transformation.py fix(streaming)!: send the include_usage chunk with an empty choices array (#47109) 2026-10-21 02:26:05 +00:00