mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-07 02:58:21 +00:00
update eval-tasks -> eval/task
This commit is contained in:
parent
371f11a569
commit
f1844a88c4
3 changed files with 48 additions and 45 deletions
52
docs/_static/llama-stack-spec.html
vendored
52
docs/_static/llama-stack-spec.html
vendored
|
@ -728,7 +728,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/v1/eval-tasks/{eval_task_id}": {
|
||||
"/v1/eval/tasks/{task_id}": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
|
@ -756,7 +756,7 @@
|
|||
"parameters": [
|
||||
{
|
||||
"name": "eval_task_id",
|
||||
"in": "path",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
|
@ -1503,7 +1503,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/v1/eval-tasks": {
|
||||
"/v1/eval/tasks/": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
|
@ -1522,28 +1522,6 @@
|
|||
],
|
||||
"description": "",
|
||||
"parameters": []
|
||||
},
|
||||
"post": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"EvalTasks"
|
||||
],
|
||||
"description": "",
|
||||
"parameters": [],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/RegisterEvalTaskRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/models": {
|
||||
|
@ -2121,6 +2099,30 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/v1/eval/tasks": {
|
||||
"post": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"EvalTasks"
|
||||
],
|
||||
"description": "",
|
||||
"parameters": [],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/RegisterEvalTaskRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/eval/tasks/{task_id}/jobs": {
|
||||
"post": {
|
||||
"responses": {
|
||||
|
|
35
docs/_static/llama-stack-spec.yaml
vendored
35
docs/_static/llama-stack-spec.yaml
vendored
|
@ -440,7 +440,7 @@ paths:
|
|||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/v1/eval-tasks/{eval_task_id}:
|
||||
/v1/eval/tasks/{task_id}:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
|
@ -456,7 +456,7 @@ paths:
|
|||
description: ''
|
||||
parameters:
|
||||
- name: eval_task_id
|
||||
in: path
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
|
@ -895,7 +895,7 @@ paths:
|
|||
schema:
|
||||
$ref: '#/components/schemas/RegisterDatasetRequest'
|
||||
required: true
|
||||
/v1/eval-tasks:
|
||||
/v1/eval/tasks/:
|
||||
get:
|
||||
responses:
|
||||
'200':
|
||||
|
@ -908,20 +908,6 @@ paths:
|
|||
- EvalTasks
|
||||
description: ''
|
||||
parameters: []
|
||||
post:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
tags:
|
||||
- EvalTasks
|
||||
description: ''
|
||||
parameters: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/RegisterEvalTaskRequest'
|
||||
required: true
|
||||
/v1/models:
|
||||
get:
|
||||
responses:
|
||||
|
@ -1278,6 +1264,21 @@ paths:
|
|||
type: array
|
||||
items:
|
||||
type: string
|
||||
/v1/eval/tasks:
|
||||
post:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
tags:
|
||||
- EvalTasks
|
||||
description: ''
|
||||
parameters: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/RegisterEvalTaskRequest'
|
||||
required: true
|
||||
/v1/eval/tasks/{task_id}/jobs:
|
||||
post:
|
||||
responses:
|
||||
|
|
|
@ -45,16 +45,16 @@ class ListEvalTasksResponse(BaseModel):
|
|||
|
||||
@runtime_checkable
|
||||
class EvalTasks(Protocol):
|
||||
@webmethod(route="/eval-tasks", method="GET")
|
||||
@webmethod(route="/eval/tasks/", method="GET")
|
||||
async def list_eval_tasks(self) -> ListEvalTasksResponse: ...
|
||||
|
||||
@webmethod(route="/eval-tasks/{eval_task_id}", method="GET")
|
||||
@webmethod(route="/eval/tasks/{task_id}", method="GET")
|
||||
async def get_eval_task(
|
||||
self,
|
||||
eval_task_id: str,
|
||||
) -> Optional[EvalTask]: ...
|
||||
|
||||
@webmethod(route="/eval-tasks", method="POST")
|
||||
@webmethod(route="/eval/tasks", method="POST")
|
||||
async def register_eval_task(
|
||||
self,
|
||||
eval_task_id: str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue