fix: make backslash work in GET /models/{model_id:path} (#1068)

This commit is contained in:
Xi Yan 2025-02-13 08:46:43 -08:00 committed by GitHub
parent 47fccf0d03
commit 2fa9e3c941
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 32 additions and 24 deletions

View file

@ -134,7 +134,7 @@ class ScoringFunctions(Protocol):
@webmethod(route="/scoring-functions", method="GET")
async def list_scoring_functions(self) -> ListScoringFunctionsResponse: ...
@webmethod(route="/scoring-functions/{scoring_fn_id}", method="GET")
@webmethod(route="/scoring-functions/{scoring_fn_id:path}", method="GET")
async def get_scoring_function(self, scoring_fn_id: str, /) -> Optional[ScoringFn]: ...
@webmethod(route="/scoring-functions", method="POST")