From 6a633f2533dea491479997d6fb87e5d202cd772b Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Mon, 9 Mar 2026 22:14:17 +0100 Subject: [PATCH] feat(swagger): update swagger (#8923) Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com> --- swagger/docs.go | 20 +++++++++++++++++++- swagger/swagger.json | 20 +++++++++++++++++++- swagger/swagger.yaml | 21 ++++++++++++++++++++- 3 files changed, 58 insertions(+), 3 deletions(-) diff --git a/swagger/docs.go b/swagger/docs.go index 0a1405eb9..8eb283ab9 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -1656,6 +1656,10 @@ const docTemplate = `{ "name": { "type": "string" }, + "size": { + "description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.", + "type": "string" + }, "tags": { "type": "array", "items": { @@ -1720,6 +1724,10 @@ const docTemplate = `{ "type": "object", "additionalProperties": true }, + "size": { + "description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.", + "type": "string" + }, "tags": { "type": "array", "items": { @@ -1792,6 +1800,10 @@ const docTemplate = `{ "type": "object", "additionalProperties": true }, + "size": { + "description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.", + "type": "string" + }, "tags": { "type": "array", "items": { @@ -3483,7 +3495,13 @@ const docTemplate = `{ "$ref": "#/definitions/schema.NodeData" } }, - "nodes": { + "llama_cpp_nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/schema.NodeData" + } + }, + "mlx_nodes": { "type": "array", "items": { "$ref": "#/definitions/schema.NodeData" diff --git a/swagger/swagger.json b/swagger/swagger.json index 1ae613a18..6b1f6c248 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -1649,6 +1649,10 @@ "name": { "type": "string" }, + "size": { + "description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.", + "type": "string" + }, "tags": { "type": "array", "items": { @@ -1713,6 +1717,10 @@ "type": "object", "additionalProperties": true }, + "size": { + "description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.", + "type": "string" + }, "tags": { "type": "array", "items": { @@ -1785,6 +1793,10 @@ "type": "object", "additionalProperties": true }, + "size": { + "description": "Size is an optional hardcoded model size string (e.g. \"500MB\", \"14.5GB\").\nUsed when the size cannot be estimated automatically.", + "type": "string" + }, "tags": { "type": "array", "items": { @@ -3476,7 +3488,13 @@ "$ref": "#/definitions/schema.NodeData" } }, - "nodes": { + "llama_cpp_nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/schema.NodeData" + } + }, + "mlx_nodes": { "type": "array", "items": { "$ref": "#/definitions/schema.NodeData" diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 36a565330..981245c52 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -89,6 +89,11 @@ definitions: type: array name: type: string + size: + description: |- + Size is an optional hardcoded model size string (e.g. "500MB", "14.5GB"). + Used when the size cannot be estimated automatically. + type: string tags: items: type: string @@ -134,6 +139,11 @@ definitions: description: Overrides are used to override the configuration of the model located at URL type: object + size: + description: |- + Size is an optional hardcoded model size string (e.g. "500MB", "14.5GB"). + Used when the size cannot be estimated automatically. + type: string tags: items: type: string @@ -184,6 +194,11 @@ definitions: description: Overrides are used to override the configuration of the model located at URL type: object + size: + description: |- + Size is an optional hardcoded model size string (e.g. "500MB", "14.5GB"). + Used when the size cannot be estimated automatically. + type: string tags: items: type: string @@ -1333,7 +1348,11 @@ definitions: items: $ref: '#/definitions/schema.NodeData' type: array - nodes: + llama_cpp_nodes: + items: + $ref: '#/definitions/schema.NodeData' + type: array + mlx_nodes: items: $ref: '#/definitions/schema.NodeData' type: array