mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
Derive the GCS batch object path from the deployment's configured model when present, so a user-crafted JSONL body.model cannot redirect an authorized deployment's credentials to a different endpoint; the JSONL value remains the fallback for direct SDK calls with no deployment config. Route the fine-tuned endpoint resolution GET through _check_custom_proxy so custom api_base deployments do not contact Google directly. Prefer the publisher model path over an endpoints/ segment when parsing GCS uris, and use the last endpoints/ occurrence, so a bucket prefix containing endpoints/<digits> cannot shadow the real model path. Move the custom_endpoint rejection from the batches dispatcher into the Vertex batch handler so the provider policy lives in the provider module. |
||
|---|---|---|
| .. | ||
| test_file_retrieve_provider_routing.py | ||
| test_vertex_ai_binary_file_upload.py | ||
| test_vertex_ai_files_handler.py | ||
| test_vertex_ai_files_integration.py | ||
| test_vertex_ai_files_streaming.py | ||
| test_vertex_ai_files_transformation.py | ||