From 7243285c3b724a946b0c1333af3e946daa6979d3 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Thu, 31 Aug 2023 10:29:56 +0800 Subject: [PATCH] docs: update openapi.json --- website/static/openapi.json | 49 ++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/website/static/openapi.json b/website/static/openapi.json index 33a297e..39d4c3b 100644 --- a/website/static/openapi.json +++ b/website/static/openapi.json @@ -177,7 +177,12 @@ "required": [ "model", "device", - "compute_type" + "compute_type", + "arch", + "cpu_info", + "cpu_count", + "cuda_devices", + "version" ], "properties": { "model": { @@ -188,6 +193,25 @@ }, "compute_type": { "type": "string" + }, + "arch": { + "type": "string" + }, + "cpu_info": { + "type": "string" + }, + "cpu_count": { + "type": "integer", + "minimum": 0 + }, + "cuda_devices": { + "type": "array", + "items": { + "type": "string" + } + }, + "version": { + "$ref": "#/components/schemas/Version" } } }, @@ -230,6 +254,29 @@ "nullable": true } } + }, + "Version": { + "type": "object", + "required": [ + "build_date", + "build_timestamp", + "git_sha", + "git_describe" + ], + "properties": { + "build_date": { + "type": "string" + }, + "build_timestamp": { + "type": "string" + }, + "git_sha": { + "type": "string" + }, + "git_describe": { + "type": "string" + } + } } } }