litellm/tests/unit/batches
ryan-crabbe-berri 465e9c40b1
fix(vertex_ai): report Gemini batch lines that end malformed with no output as error rows (#53957)
* fix(vertex_ai): turn malformed Gemini batch rows with no output into error rows

* test(vertex_ai): give the malformed batch fixture a processed_time like real rows

* fix(vertex_ai): keep billing Gemini batch lines that end malformed with no output

Google bills these lines, so the converted line keeps the usage in an OpenAI
HTTP 500 row and batch spend tracking prices failed lines that report usage.

* refactor(batches): classify each batch output line in its own typed function
2026-11-24 03:45:22 +00: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-20 01:51:51 +00:00
test_batch_utils.py fix(vertex_ai): report Gemini batch lines that end malformed with no output as error rows (#53957) 2026-11-24 03:45:22 +00:00
test_main.py fix(proxy): resolve admin oidc api_key references on batch cancel, fine-tuning listing, OCR, /v1/messages and cache prediction (#53678) 2026-11-23 10:11:10 -08:00
test_responses_batch_cost.py