litellm/tests/unit/llms/bedrock/embed
Kerry Lu 5304ae4304
fix(bedrock): bill Nova embedding audio and video by the clip's length (#53307)
* fix(bedrock): bill the text sent beside an image in a Nova embedding request

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

* keep audio and video estimates out of the text tokens billed beside an image

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

* type the expected costs in the new Nova embedding tests

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

* fix(bedrock): bill Nova embedding audio and video by the clip's length

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

* fix(bedrock): never log a Nova embedding clip below the estimate it replaced

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

* fix(bedrock): estimate each Nova embedding response once

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

* fix(bedrock): estimate a Nova embedding video whose header says its length is unknown

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-21 20:01:56 +00:00
..
__init__.py
test_amazon_nova_transformation.py test: move offline logging, secret manager and provider tests from legacy dirs into tests/unit (#45554) 2026-10-09 09:48:10 -07:00
test_bedrock_async_invoke_embedding.py
test_bedrock_embedding.py fix(bedrock): bill Nova embedding audio and video by the clip's length (#53307) 2026-11-21 20:01:56 +00:00
test_embedding.py
test_twelvelabs_marengo_3_transformation.py