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")
|
license(name = "Apache 2.0", url="https://github.com/TabbyML/tabby/blob/main/LICENSE")
|
||||||
),
|
),
|
||||||
servers(
|
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"),
|
(url = "http://localhost:8080", description = "Local server"),
|
||||||
),
|
),
|
||||||
paths(events::log_event, completions::completion, health::health),
|
paths(events::log_event, completions::completion, health::health),
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"url": "https://tabbyml.app.tabbyml.com/tabby",
|
"url": "https://playground.app.tabbyml.com/tabby",
|
||||||
"description": "Local server"
|
"description": "Playground server"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"url": "http://localhost:8080",
|
"url": "http://localhost:8080",
|
||||||
|
|
@ -87,7 +87,14 @@
|
||||||
"operationId": "health",
|
"operationId": "health",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"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": {
|
"LogEventRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue