forked from phoenix-oss/llama-stack-mirror
benchmarks
This commit is contained in:
parent
c80d1f906b
commit
1860751655
3 changed files with 7 additions and 7 deletions
4
docs/_static/llama-stack-spec.html
vendored
4
docs/_static/llama-stack-spec.html
vendored
|
@ -1117,7 +1117,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/v1/eval/benchmarks/{benchmark_id}": {
|
||||
"/v1/benchmarks/{benchmark_id}": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
|
@ -2336,7 +2336,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/v1/eval/benchmarks": {
|
||||
"/v1/benchmarks": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
|
|
4
docs/_static/llama-stack-spec.yaml
vendored
4
docs/_static/llama-stack-spec.yaml
vendored
|
@ -765,7 +765,7 @@ paths:
|
|||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/v1/eval/benchmarks/{benchmark_id}:
|
||||
/v1/benchmarks/{benchmark_id}:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
|
@ -1580,7 +1580,7 @@ paths:
|
|||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/v1/eval/benchmarks:
|
||||
/v1/benchmarks:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue