litellm/tests/test_litellm/llms/vertex_ai/files
mubashir1osmani 1d2ed0bdac fix(vertex_ai): address batch review findings
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.
2026-09-03 19:49:37 -04:00
..
test_file_retrieve_provider_routing.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_vertex_ai_binary_file_upload.py fix(vertex_ai/files): single media upload for batch files to fix 499s on large uploads (#31653) 2026-06-29 17:31:32 -07:00
test_vertex_ai_files_handler.py style: wrap the escaped messages under 120 columns 2026-08-21 17:48:57 -07:00
test_vertex_ai_files_integration.py test: require a match= on broad pytest.raises, and drop duplicate parametrize cases (#37769) 2026-08-20 20:24:49 -07:00
test_vertex_ai_files_streaming.py test(lint): ban blind pytest.raises(Exception) with ruff B017 (#37731) 2026-08-20 18:09:42 -07:00
test_vertex_ai_files_transformation.py fix(vertex_ai): address batch review findings 2026-09-03 19:49:37 -04:00