docs: update website openapi.json
parent
b2734aed59
commit
93d5d8b297
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue