Skip to content

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]

set native vertex endpoints

Ishaan Jaffaf04bbeccaf7
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 0f57a5fd13b..83126b95451 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -213,6 +213,8 @@ from litellm.proxy.utils import (
send_email,
update_spend,
)
+from litellm.proxy.vertex_ai_endpoints.vertex_endpoints import router as vertex_router
+from litellm.proxy.vertex_ai_endpoints.vertex_endpoints import set_default_vertex_config
from litellm.router import (
AssistantsTypedDict,
Deployment,
@@ -1818,6 +1820,10 @@ class ProxyConfig:
files_config = config.get("files_settings", None)
set_files_config(config=files_config)
+ ## default config for vertex ai routes
+ default_vertex_config = config.get("default_vertex_config", None)
+ set_default_vertex_config(config=default_vertex_config)
+
## ROUTER SETTINGS (e.g. routing_strategy, ...)
router_settings = config.get("router_settings", None)
if router_settings and isinstance(router_settings, dict):
@@ -9631,6 +9637,7 @@ def cleanup_router_config_variables():
app.include_router(router)
app.include_router(fine_tuning_router)
+app.include_router(vertex_router)
app.include_router(health_router)
app.include_router(key_management_router)
app.include_router(internal_user_router)