From 1cb107bc8f3bc29bcb38fba66d570ef6ad3433d4 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Fri, 10 May 2024 14:31:35 -0700 Subject: [PATCH] docs: update CHANGELOG.md for 0.11 --- CHANGELOG.md | 16 +++++--- website/static/openapi.json | 80 ++++++++++++++++++++++++++++--------- 2 files changed, 72 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6727ed8ced54..1b0189906847 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,21 @@ -# v0.11.0 [UNRELEASED] +# v0.11.0 ## Notice * The `--webserver` flag is now enabled by default in `tabby serve`. To turn off the webserver and only use OSS features, use the `--no-webserver` flag. -* `/v1beta/chat/completions` is now moved to `/v1/chat/completions`, while the old endpoint is still available for backward compatibility. +* The `/v1beta/chat/completions` endpoint has been moved to `/v1/chat/completions`, while the old endpoint is still available for backward compatibility. ## Features -* Upgrade [llama.cpp](https://github.com/ggerganov/llama.cpp) to [b2715](https://github.com/ggerganov/llama.cpp/releases/tag/b2715). -* Support integration of repositories from GitHub and GitLab using personal access tokens. +* Upgraded [llama.cpp](https://github.com/ggerganov/llama.cpp) to version [b2715](https://github.com/ggerganov/llama.cpp/releases/tag/b2715). +* Added support for integrating repositories from GitHub and GitLab using personal access tokens. +* Introduced a new **Activities** page to view user activities. +* Implemented incremental indexing for faster repository context updates. +* Added storage usage statistics in the **System** page. +* Included an `Ask Tabby` feature in the source code browser to provide in-context help from AI. ## Fixes and Improvements -* Changed the default model filename from `q8_0.v2.gguf` to `model.gguf` in MODEL_SPEC.md -* Activities from deactivated users are no longer counted in reports +* Changed the default model filename from `q8_0.v2.gguf` to `model.gguf` in MODEL_SPEC.md. +* Excluded activities from deactivated users in reports. # v0.10.0 (04/22/2024) diff --git a/website/static/openapi.json b/website/static/openapi.json index 2e540a6efee2..a034dddd0389 100644 --- a/website/static/openapi.json +++ b/website/static/openapi.json @@ -3,11 +3,14 @@ "info": { "title": "Tabby Server", "description": "\n[![tabby stars](https://img.shields.io/github/stars/TabbyML/tabby)](https://github.com/TabbyML/tabby)\n[![Join Slack](https://shields.io/badge/Join-Tabby%20Slack-red?logo=slack)](https://links.tabbyml.com/join-slack)\n\nInstall following IDE / Editor extensions to get started with [Tabby](https://github.com/TabbyML/tabby).\n* [VSCode Extension](https://github.com/TabbyML/tabby/tree/main/clients/vscode) – Install from the [marketplace](https://marketplace.visualstudio.com/items?itemName=TabbyML.vscode-tabby), or [open-vsx.org](https://open-vsx.org/extension/TabbyML/vscode-tabby)\n* [VIM Extension](https://github.com/TabbyML/tabby/tree/main/clients/vim)\n* [IntelliJ Platform Plugin](https://github.com/TabbyML/tabby/tree/main/clients/intellij) – Install from the [marketplace](https://plugins.jetbrains.com/plugin/22379-tabby)\n", + "contact": { + "name": "TabbyML Team" + }, "license": { "name": "Apache 2.0", "url": "https://github.com/TabbyML/tabby/blob/main/LICENSE" }, - "version": "0.10.0" + "version": "0.11.0" }, "servers": [ { @@ -16,6 +19,47 @@ } ], "paths": { + "/v1/chat/completions": { + "post": { + "tags": [ + "v1" + ], + "operationId": "chat_completions", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChatCompletionRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/ChatCompletionChunk" + } + } + } + }, + "405": { + "description": "When chat model is not specified, the endpoint returns 405 Method Not Allowed" + }, + "422": { + "description": "When the prompt is malformed, the endpoint returns 422 Unprocessable Entity" + } + }, + "security": [ + { + "token": [] + } + ] + } + }, "/v1/completions": { "post": { "tags": [ @@ -211,16 +255,16 @@ "example": { "messages": [ { - "role": "user", - "content": "What is tail recursion?" + "content": "What is tail recursion?", + "role": "user" }, { - "role": "assistant", - "content": "It's a kind of optimization in compiler?" + "content": "It's a kind of optimization in compiler?", + "role": "assistant" }, { - "role": "user", - "content": "Could you share more details?" + "content": "Could you share more details?", + "role": "user" } ] } @@ -304,13 +348,13 @@ } }, "example": { - "id": "string", "choices": [ { "index": 0, "text": "string" } - ] + ], + "id": "string" } }, "Declaration": { @@ -350,6 +394,10 @@ "type": "string", "nullable": true }, + "chat_device": { + "type": "string", + "nullable": true + }, "device": { "type": "string" }, @@ -371,6 +419,10 @@ }, "version": { "$ref": "#/components/schemas/Version" + }, + "webserver": { + "type": "boolean", + "nullable": true } } }, @@ -402,9 +454,7 @@ "body", "filepath", "git_url", - "kind", - "language", - "name" + "language" ], "properties": { "body": { @@ -416,14 +466,8 @@ "git_url": { "type": "string" }, - "kind": { - "type": "string" - }, "language": { "type": "string" - }, - "name": { - "type": "string" } } },