litellm/tests/unit/batches
mateo-berri dd2eb2764a feat(vertex_ai): send the opt-in identity labels on multimodal embeddings, the Google GenAI route, and batches
With litellm_settings.vertex_request_label_fields on, the multimodal embedding
predict body, the native generateContent and streamGenerateContent body, and the
BatchPredictionJob now carry the key's identity labels the same way chat does

Caller labels on GenAI are resolved after the extra_body merge, so neither a
top-level labels field nor extra_body.labels can write the reserved prefix. Batch
labels come only from the proxy's litellm_metadata, never the caller's OpenAI
batch metadata. With the setting off every route sends the same body as before

(cherry picked from commit a7254fede6)
2026-11-13 23:00:59 -05:00
..
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
test_batch_line_items.py fix(batches): apply the Vertex regional endpoint uplift to batch cost (#47466) 2026-10-27 19:57:37 -07:00
test_batch_utils.py feat(gemini): file-backed batch jobs on /v1/batches with output download and spend tracking (#51032) 2026-11-12 02:08:31 +00:00
test_main.py feat(vertex_ai): send the opt-in identity labels on multimodal embeddings, the Google GenAI route, and batches 2026-11-13 23:00:59 -05:00
test_responses_batch_cost.py test: migrate wave 1 phase 1 legacy tests to tests/unit 2026-09-20 09:17:57 +00:00