mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-21 00:21:38 +00:00
Bedrock multimodal embedding models (Titan and Nova) were being costed using the per-token text rate instead of the correct flat per-image rate ($0.00006/image). The pricing data was correct but never applied because image_count was never populated in prompt_tokens_details. Pass batch_data to Titan/Nova response transformers so they can count image inputs and set PromptTokensDetailsWrapper(image_count=N) on Usage, mirroring the existing Vertex AI pattern from PR #9623. Also fix the text_tokens fallback in generic_cost_per_token to not override text_tokens=0 when image_count > 0 (image-only requests).