docs: update website openapi.json

improve-workflow
Meng Zhang 2023-06-13 13:13:03 -07:00
parent b2734aed59
commit 93d5d8b297
2 changed files with 30 additions and 4 deletions

View File

@ -27,7 +27,7 @@ OpenAPI documentation for [tabby](https://github.com/TabbyML/tabby), a self-host
license(name = "Apache 2.0", url="https://github.com/TabbyML/tabby/blob/main/LICENSE")
),
servers(
(url = "https://tabbyml.app.tabbyml.com/tabby", description = "Local server"),
(url = "https://playground.app.tabbyml.com/tabby", description = "Playground server"),
(url = "http://localhost:8080", description = "Local server"),
),
paths(events::log_event, completions::completion, health::health),

View File

@ -11,8 +11,8 @@
},
"servers": [
{
"url": "https://tabbyml.app.tabbyml.com/tabby",
"description": "Local server"
"url": "https://playground.app.tabbyml.com/tabby",
"description": "Playground server"
},
{
"url": "http://localhost:8080",
@ -87,7 +87,14 @@
"operationId": "health",
"responses": {
"200": {
"description": "Health"
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HealthState"
}
}
}
}
}
}
@ -155,6 +162,25 @@
}
}
},
"HealthState": {
"type": "object",
"required": [
"model",
"device",
"compute_type"
],
"properties": {
"model": {
"type": "string"
},
"device": {
"type": "string"
},
"compute_type": {
"type": "string"
}
}
},
"LogEventRequest": {
"type": "object",
"required": [