Skip to content

Commit

Permalink
Update openapi.json
Browse files Browse the repository at this point in the history
  • Loading branch information
konieshadow committed Oct 25, 2023
1 parent 336bd3e commit cad3992
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,25 @@
}
}
}
},
"/v1/generation/job-queue": {
"get": {
"summary": "Job Queue",
"description": "Query job queue info",
"operationId": "job_queue_v1_generation_job_queue_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JobQueueInfo"
}
}
}
}
}
}
}
},
"components": {
Expand Down Expand Up @@ -1348,6 +1367,32 @@
"type": "object",
"title": "HTTPValidationError"
},
"JobQueueInfo": {
"properties": {
"running_size": {
"type": "integer",
"title": "Running Size",
"description": "The current running and waiting job count"
},
"finished_size": {
"type": "integer",
"title": "Finished Size",
"description": "Finished job cound (after auto clean)"
},
"last_job_id": {
"type": "integer",
"title": "Last Job Id",
"description": "Last submit generation job id"
}
},
"type": "object",
"required": [
"running_size",
"finished_size",
"last_job_id"
],
"title": "JobQueueInfo"
},
"Lora": {
"properties": {
"model_name": {
Expand Down

0 comments on commit cad3992

Please sign in to comment.