From 731176ce3ad6110466fa77d76fdfa5ed2247bc30 Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Thu, 26 Mar 2026 07:58:11 +0100 Subject: [PATCH] feat(swagger): update swagger (#9136) 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 | 10 ++++------ swagger/swagger.json | 10 ++++------ swagger/swagger.yaml | 8 ++++---- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/swagger/docs.go b/swagger/docs.go index 52c3be58d..bf63520f4 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -1757,12 +1757,6 @@ const docTemplate = `{ "b64_json": { "type": "string" }, - "embedding": { - "type": "array", - "items": { - "type": "number" - } - }, "index": { "type": "integer" }, @@ -2446,6 +2440,10 @@ const docTemplate = `{ "echo": { "type": "boolean" }, + "encoding_format": { + "description": "Embedding encoding format: \"float\" (default) or \"base64\" (OpenAI Node.js SDK default)", + "type": "string" + }, "file": { "description": "whisper", "type": "string" diff --git a/swagger/swagger.json b/swagger/swagger.json index ad759ffcb..ba2689fe0 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -1750,12 +1750,6 @@ "b64_json": { "type": "string" }, - "embedding": { - "type": "array", - "items": { - "type": "number" - } - }, "index": { "type": "integer" }, @@ -2439,6 +2433,10 @@ "echo": { "type": "boolean" }, + "encoding_format": { + "description": "Embedding encoding format: \"float\" (default) or \"base64\" (OpenAI Node.js SDK default)", + "type": "string" + }, "file": { "description": "whisper", "type": "string" diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 974b5b0b4..4fc976fb8 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -498,10 +498,6 @@ definitions: properties: b64_json: type: string - embedding: - items: - type: number - type: array index: type: integer object: @@ -950,6 +946,10 @@ definitions: type: integer echo: type: boolean + encoding_format: + description: 'Embedding encoding format: "float" (default) or "base64" (OpenAI + Node.js SDK default)' + type: string file: description: whisper type: string