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