(feat) pass through llm endpoints - add PATCH support (vertex context caching requires for update ops) (#6924)

* add PATCH for pass through endpoints

* test_pass_through_routes_support_all_methods
This commit is contained in:
Ishaan Jaff 2024-11-26 14:39:13 -08:00 committed by GitHub
parent 4019ca38b4
commit 41aa604e6b
4 changed files with 45 additions and 8 deletions

View file

@ -60,7 +60,7 @@ def create_request_copy(request: Request):
@router.api_route(
"/langfuse/{endpoint:path}",
methods=["GET", "POST", "PUT", "DELETE"],
methods=["GET", "POST", "PUT", "DELETE", "PATCH"],
tags=["Langfuse Pass-through", "pass-through"],
)
async def langfuse_proxy_route(