From 3b7153ba23cdd5933b36f8d774a0fa10dcf95dac Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sun, 11 Jun 2023 12:28:23 -0700 Subject: [PATCH] docs: update website --- crates/tabby/src/serve/mod.rs | 2 +- website/static/openapi.json | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/crates/tabby/src/serve/mod.rs b/crates/tabby/src/serve/mod.rs index df380d0..3d798f4 100644 --- a/crates/tabby/src/serve/mod.rs +++ b/crates/tabby/src/serve/mod.rs @@ -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://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"), ), paths(events::log_event, completions::completion, health), diff --git a/website/static/openapi.json b/website/static/openapi.json index 54ea3a1..f5b4959 100644 --- a/website/static/openapi.json +++ b/website/static/openapi.json @@ -11,7 +11,7 @@ }, "servers": [ { - "url": "https://app.tabbyml.com/api/workspace/tabbyml/tabby", + "url": "https://tabbyml.app.tabbyml.com/tabby", "description": "Local server" }, { @@ -78,6 +78,19 @@ } } } + }, + "/v1/health": { + "post": { + "tags": [ + "v1" + ], + "operationId": "health", + "responses": { + "200": { + "description": "Health" + } + } + } } }, "components": {