docs: update openapi.json for v0.6.0

support-auth-token
Meng Zhang 2023-12-07 13:59:19 +08:00
parent d8d1399f6d
commit 452ab5c07a
1 changed files with 11 additions and 11 deletions

View File

@ -7,7 +7,7 @@
"name": "Apache 2.0", "name": "Apache 2.0",
"url": "https://github.com/TabbyML/tabby/blob/main/LICENSE" "url": "https://github.com/TabbyML/tabby/blob/main/LICENSE"
}, },
"version": "0.5.5" "version": "0.6.0"
}, },
"servers": [ "servers": [
{ {
@ -125,16 +125,16 @@
"example": { "example": {
"messages": [ "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": { "example": {
"id": "string",
"choices": [ "choices": [
{ {
"index": 0, "index": 0,
"text": "string" "text": "string"
} }
], ]
"id": "string"
} }
}, },
"HealthState": { "HealthState": {
"type": "object", "type": "object",
"required": [ "required": [
"model",
"device", "device",
"arch", "arch",
"cpu_info", "cpu_info",
@ -227,7 +226,8 @@
], ],
"properties": { "properties": {
"model": { "model": {
"type": "string" "type": "string",
"nullable": true
}, },
"chat_model": { "chat_model": {
"type": "string", "type": "string",