forked from phoenix/litellm-mirror
set native vertex endpoints
This commit is contained in:
parent
af91740fbb
commit
af04bbecca
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue