litellm/tests/litellm
michelligabriele 8fdd330835
fix(proxy): use batch_ prefix for Vertex AI batch IDs in encode_file_id_with_model (#21624)
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
2026-02-20 08:32:46 -08:00
..
a2a_protocol/providers/pydantic_ai_agents [Feat] New provider - Agent Gateway, add pydantic ai agents (#18013) 2025-12-15 17:40:58 -08:00
llms feat(bedrock): support nova/ and nova-2/ spec prefixes for custom imported models (#21359) 2026-02-17 23:00:37 -08:00
proxy fix(proxy): use batch_ prefix for Vertex AI batch IDs in encode_file_id_with_model (#21624) 2026-02-20 08:32:46 -08:00
test_batch_completion_models_all_responses.py fix(batch_completion): submit all model futures before waiting (#20705) 2026-02-11 15:44:37 +05:30
test_bedrock_extended_beta_models.py feat(bedrock): add support for 4 new beta models (#20974) 2026-02-13 18:32:12 +05:30
test_proxy_auth.py feat(sdk): add proxy_auth for auto OAuth2/JWT token management (#20238) 2026-02-02 22:04:08 -08:00
test_router_retry_backoff_headers.py fix(router): use current retry exception for retry backoff (#20725) 2026-02-10 22:44:25 -08:00
test_stream_chunk_builder_images.py Fix stream_chunk_builder to preserve images from streaming chunks (#19654) 2026-01-28 21:31:06 -08:00