litellm/tests/unit/llms/bedrock/embed
tessellark 1a05aab72a
fix(bedrock)!: route region-prefixed embedding models to that region and bill its price (#49072)
* fix(bedrock): send region-prefixed embedding model ids to that region without the prefix

* chore(bedrock): hold the embedding fix back until the risk stamp

* fix(bedrock): send region-prefixed embedding model ids to that region without the prefix

* fix(bedrock): keep a model_id's region and price embeddings at the region the call goes to

* fix(bedrock): read a model_id ARN's region for embeddings and keep unlisted regions mappable

* fix(bedrock): route async_invoke embeddings whether the region comes before or after it

* fix(bedrock): price embeddings by region_name and keep the path region with a plain model_id

* fix(bedrock): price a model_id ARN at its region's row

* fix(bedrock): keep chat's region rules for embeddings and leave ARN pricing as on main

A plain model_id skips the region in the model, as chat does, so a deployment that
worked on main keeps calling the same region. An empty aws_region_name fails region
validation again instead of falling back. This reverts the ARN regional pricing, since
many regional rows lack the bare row's priority, batch, and long-context rates

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-10-29 06:24:04 -07:00
..
__init__.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
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 refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
test_bedrock_embedding.py fix(bedrock)!: route region-prefixed embedding models to that region and bill its price (#49072) 2026-10-29 06:24:04 -07:00
test_embedding.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_twelvelabs_marengo_3_transformation.py refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00