From 452ab5c07a61a0deeb1263738e74dfb50df0d0b7 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Thu, 7 Dec 2023 13:59:19 +0800 Subject: [PATCH] docs: update openapi.json for v0.6.0 --- website/static/openapi.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/website/static/openapi.json b/website/static/openapi.json index d94b7fa..7ff0d99 100644 --- a/website/static/openapi.json +++ b/website/static/openapi.json @@ -7,7 +7,7 @@ "name": "Apache 2.0", "url": "https://github.com/TabbyML/tabby/blob/main/LICENSE" }, - "version": "0.5.5" + "version": "0.6.0" }, "servers": [ { @@ -125,16 +125,16 @@ "example": { "messages": [ { - "content": "What is tail recursion?", - "role": "user" + "role": "user", + "content": "What is tail recursion?" }, { - "content": "It's a kind of optimization in compiler?", - "role": "assistant" + "role": "assistant", + "content": "It's a kind of optimization in compiler?" }, { - "content": "Could you share more details?", - "role": "user" + "role": "user", + "content": "Could you share more details?" } ] } @@ -205,19 +205,18 @@ } }, "example": { + "id": "string", "choices": [ { "index": 0, "text": "string" } - ], - "id": "string" + ] } }, "HealthState": { "type": "object", "required": [ - "model", "device", "arch", "cpu_info", @@ -227,7 +226,8 @@ ], "properties": { "model": { - "type": "string" + "type": "string", + "nullable": true }, "chat_model": { "type": "string",