benchmarks

This commit is contained in:
Xi Yan 2025-03-16 19:41:40 -07:00
parent c80d1f906b
commit 1860751655
3 changed files with 7 additions and 7 deletions

View file

@ -51,7 +51,7 @@ class ListBenchmarksResponse(BaseModel):
@runtime_checkable
class Benchmarks(Protocol):
@webmethod(route="/eval/benchmarks", method="POST")
@webmethod(route="/benchmarks", method="POST")
async def register_benchmark(
self,
dataset_id: str,
@ -69,14 +69,14 @@ class Benchmarks(Protocol):
"""
...
@webmethod(route="/eval/benchmarks", method="GET")
@webmethod(route="/benchmarks", method="GET")
async def list_benchmarks(self) -> ListBenchmarksResponse:
"""
List all benchmarks.
"""
...
@webmethod(route="/eval/benchmarks/{benchmark_id}", method="GET")
@webmethod(route="/benchmarks/{benchmark_id}", method="GET")
async def get_benchmark(
self,
benchmark_id: str,