fix allow using vertex_ai as the primary way for pass through vertex endpoints

This commit is contained in:
Ishaan Jaff 2024-11-25 10:20:02 -08:00
parent 27848e8ed2
commit 5baf33bf8f

View file

@ -113,7 +113,12 @@ def construct_target_url(
@router.api_route(
"/vertex-ai/{endpoint:path}", methods=["GET", "POST", "PUT", "DELETE"]
"/vertex-ai/{endpoint:path}",
methods=["GET", "POST", "PUT", "DELETE"],
include_in_schema=False,
)
@router.api_route(
"/vertex_ai/{endpoint:path}", methods=["GET", "POST", "PUT", "DELETE"]
)
async def vertex_proxy_route(
endpoint: str,