docs: update website

improve-workflow
Meng Zhang 2023-06-11 12:28:23 -07:00
parent de546b03fe
commit 3b7153ba23
2 changed files with 15 additions and 2 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") license(name = "Apache 2.0", url="https://github.com/TabbyML/tabby/blob/main/LICENSE")
), ),
servers( servers(
(url = "https://app.tabbyml.com/api/workspace/tabbyml/tabby", description = "Local server"), (url = "https://tabbyml.app.tabbyml.com/tabby", description = "Local server"),
(url = "http://localhost:8080", description = "Local server"), (url = "http://localhost:8080", description = "Local server"),
), ),
paths(events::log_event, completions::completion, health), paths(events::log_event, completions::completion, health),

View File

@ -11,7 +11,7 @@
}, },
"servers": [ "servers": [
{ {
"url": "https://app.tabbyml.com/api/workspace/tabbyml/tabby", "url": "https://tabbyml.app.tabbyml.com/tabby",
"description": "Local server" "description": "Local server"
}, },
{ {
@ -78,6 +78,19 @@
} }
} }
} }
},
"/v1/health": {
"post": {
"tags": [
"v1"
],
"operationId": "health",
"responses": {
"200": {
"description": "Health"
}
}
}
} }
}, },
"components": { "components": {