litellm/tests/test_litellm/llms/bedrock
michelligabriele a395a25705
fix(cost-calc): use per-image pricing for Bedrock multimodal embeddings (#21646)
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).
2026-02-20 08:51:21 -08:00
..
chat Fix mapping of parallel_tool_calls for bedrock converse 2026-02-20 12:27:41 +05:30
count_tokens Apply code formatting and linting fixes 2025-09-18 08:28:17 +02:00
embed fix(cost-calc): use per-image pricing for Bedrock multimodal embeddings (#21646) 2026-02-20 08:51:21 -08:00
files Add support for file content download for bedrock batches 2025-12-04 13:27:53 +05:30
image fix patch 2025-12-20 14:00:42 +05:30
invoke_agent fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
messages/invoke_transformations Remove ttl fiedl when routing to bedrock 2025-12-16 16:20:19 +05:30
passthrough Fix : model id encoding for bedrock passthrough 2026-01-12 10:57:17 +05:30
realtime Add nova sonic tests 2026-02-02 12:18:43 +05:30
rerank fix background cost tracking tests 2026-01-02 21:12:25 +05:30
vector_stores [Feat] UI Vector Stores - Allow adding Vertex RAG Engine, OpenAI, Azure (#12752) 2025-07-18 18:25:26 -07:00
test_anthropic_beta_support.py Update code to handle anthropic beta headers mapping 2026-02-11 12:35:22 +05:30
test_base_aws_llm.py fix(bedrock): address review - cross-account, SSL verify, narrow fallback 2026-02-11 15:45:47 +05:30
test_bedrock_common_utils.py Fix: Support us-gov prefix for AWS GovCloud Bedrock models (#15626) 2025-10-17 13:19:51 -07:00
test_bedrock_ssl_verify.py [Bug]: Add Custom CA certificates to boto3 clients 2026-01-12 09:05:09 +05:30
test_cross_region_inference_profile_mapping.py Fix: Bedrock cross-region inference profile cost calculation (#14566) 2025-09-15 07:10:20 -07:00