mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-30 10:22:35 +00:00
Vertex AI batch IDs are plain numeric strings (e.g., "3814889423749775360") unlike OpenAI's "batch_"-prefixed IDs. encode_file_id_with_model() was defaulting to "file-" prefix for unrecognized ID formats, causing Vertex AI batch responses to return IDs like "file-bGl0ZWxsbTox..." instead of the expected "batch_..." prefix per the OpenAI Batch API contract. Add an optional id_type parameter to encode_file_id_with_model() so the batch creation endpoint can specify id_type="batch" when encoding batch response IDs. Default remains "file" for backward compatibility. Closes #18192
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.