litellm/tests/unit/llms/bedrock/passthrough
kenneth-berri 31067d0f9f
fix(bedrock): log and bill Titan embedding replies on the invoke passthrough (#51701)
* fix(bedrock): log Titan embedding replies on the invoke passthrough as embeddings

A native /bedrock/model/<titan-embed>/invoke call returned its vector, but success logging read the reply as a chat completion and crashed, so the call was never priced or written to spend logs. Fixes #51455

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

* fix(bedrock): log binary Titan embeddings and bill input images on /invoke passthrough

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

* fix(bedrock): charge text tokens alongside the image on Titan multimodal /invoke passthrough

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-11-13 21:41:53 +00:00
..
guardrail_translation fix(guardrails): apply guardrail masks to Bedrock InvokeModel Claude requests and replies (#49947) 2026-11-04 23:12:50 +00: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
test_bedrock_passthrough_transformation.py fix(bedrock): log and bill Titan embedding replies on the invoke passthrough (#51701) 2026-11-13 21:41:53 +00:00