The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
merge: litellm_internal_staging into litellm_vertex_batch_embeddings_translation
milan2558d145f596
diff --cc litellm/llms/vertex_ai/files/transformation.pyindex bbb97a1edc2,49fdb2786e1..88acd7768c2--- a/litellm/llms/vertex_ai/files/transformation.py+++ b/litellm/llms/vertex_ai/files/transformation.py@@@ -1117,11 -797,24 +1117,11 @@@ class VertexAIFilesConfig(VertexBase, Bresponse_dict = transformed_response.model_dump()# Return in OpenAI batch format- return {- "id": f"batch_req_{uuid.uuid4()}",- "custom_id": custom_id,- "response": {- "status_code": 200,- "request_id": response_dict.get("id", ""),- "body": response_dict,- },- "error": None,- }+ return _openai_batch_output_row(custom_id=custom_id, body=response_dict)except Exception as e:- return {- "id": f"batch_req_{uuid.uuid4()}",- "custom_id": custom_id,- "response": None,- "error": {- "code": "transformation_error",- "message": f"Failed to transform response: {e}",- },- }+ return _openai_batch_output_row(+ custom_id=custom_id,+ error_code="transformation_error",- error_message=f"Failed to transform response: {e!s}",++ error_message=f"Failed to transform response: {e}",+ )