litellm/tests/test_litellm/proxy
Kris Xia 1391e41916
fix(vertex_ai): improve passthrough endpoint url parsing and construction (#17402) (#17526)
* fix(vertex_ai): improve passthrough endpoint url parsing and construction (#17402)

* test(proxy): add test for vertex passthrough load balancing

Add a test that verifies _base_vertex_proxy_route uses
get_available_deployment for proper load balancing instead of
get_model_list. This ensures the correct deployment is selected
from the router and vertex credentials are properly fetched.

Also refactor the implementation to:
- Use get_available_deployment instead of get_model_list
- Add error handling for deployment retrieval
- Improve code structure with try-except block

* feat(proxy): add pass-through deployment filtering methods

Add dedicated methods to filter and select deployments for pass-through endpoints:
- Implement get_available_deployment_for_pass_through() to ensure only deployments with use_in_pass_through=True are considered
- Implement async_get_available_deployment_for_pass_through() for async operations
- Add _filter_pass_through_deployments() helper method to filter by use_in_pass_through flag
- Update vertex pass-through route to use the new dedicated method

This ensures pass-through endpoints respect the use_in_pass_through configuration and apply proper load balancing strategy only to configured deployments.

Add comprehensive tests to verify filtering and load balancing behavior.
2026-01-14 22:17:43 +05:30
..
_experimental/mcp_server fix: forward MCP extra headers case-insensitively 2026-01-12 10:32:51 +09:00
agent_endpoints
anthropic_endpoints
auth Case insensitive email login 2026-01-09 12:51:00 -08:00
client
common_utils
db fix: proactive RDS IAM token refresh to prevent 15-min connection failed (#18795) 2026-01-08 23:53:36 +05:30
discovery_endpoints
experimental/mcp_server
google_endpoints Fix: [Bug]: Gemini Image Generation: imageConfig parameters (imageSize, aspectRatio) are completely ignored #18656 2026-01-12 13:38:37 +05:30
guardrails feat: contextual gap checks, word-form digits (#18301) 2026-01-14 17:50:16 +05:30
health_endpoints
hooks Add fix for bedrock_cache, metadata and max_model_budget (#18872) 2026-01-10 01:09:00 +05:30
image_endpoints
management_endpoints [Feat] MSFT SSO - allow overriding env var attribute names (#18998) 2026-01-12 18:56:35 -08:00
management_helpers
middleware
openai_files_endpoint Add end to end integration tests for batches 2026-01-12 10:43:09 -05:00
pass_through_endpoints fix(vertex_ai): improve passthrough endpoint url parsing and construction (#17402) (#17526) 2026-01-14 22:17:43 +05:30
prompts
public_endpoints Feat/add watsonx fields (#18569) 2026-01-03 02:53:17 +05:30
response_api_endpoints
spend_tracking [Fix] turn_off_message_logging Does Not Redact Request Messages in proxy_server_request Field When Stored to Database (#18897) 2026-01-10 11:28:21 -08:00
test_configs
ui_crud_endpoints fix: test_update_ui_settings_allowlisted_value 2026-01-06 13:58:37 +05:30
vector_store_endpoints
__init__.py
conftest.py
test_batch_metadata_none_fix.py
test_caching_routes.py
test_common_request_processing.py Merge pull request #18763 from BerriAI/litellm_staging_01_07_2026 2026-01-09 17:01:58 +05:30
test_custom_proxy.py
test_empty_model_list.py fix: return empty data array instead of 500 when no models configured (#18556) 2026-01-02 23:36:05 +05:30
test_enforce_user_param.py
test_fastapi_offline_routes.py
test_health_check_functions.py
test_litellm_pre_call_utils.py Fix: Header forwarding for embeddings endpoint 2026-01-12 18:00:48 +05:30
test_model_id_header_propagation.py
test_proxy_cli.py
test_proxy_server.py Merge remote-tracking branch 'origin' into litellm_key_team_routing_3 2026-01-08 10:39:12 -08:00
test_proxy_types.py
test_proxy_utils.py
test_route_llm_request.py
test_shared_health_check.py
test_spend_log_cleanup.py feat(proxy): cleanup spend logs cron verification, fix, and docs (#19085) 2026-01-14 22:14:48 +05:30
test_swagger_chat_completions.py
test_team_member_update.py