Skip to content

Commit 731176c

Browse files
localai-botmudler
andauthored
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>
1 parent b86fa63 commit 731176c

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

swagger/docs.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,12 +1757,6 @@ const docTemplate = `{
17571757
"b64_json": {
17581758
"type": "string"
17591759
},
1760-
"embedding": {
1761-
"type": "array",
1762-
"items": {
1763-
"type": "number"
1764-
}
1765-
},
17661760
"index": {
17671761
"type": "integer"
17681762
},
@@ -2446,6 +2440,10 @@ const docTemplate = `{
24462440
"echo": {
24472441
"type": "boolean"
24482442
},
2443+
"encoding_format": {
2444+
"description": "Embedding encoding format: \"float\" (default) or \"base64\" (OpenAI Node.js SDK default)",
2445+
"type": "string"
2446+
},
24492447
"file": {
24502448
"description": "whisper",
24512449
"type": "string"

swagger/swagger.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,12 +1750,6 @@
17501750
"b64_json": {
17511751
"type": "string"
17521752
},
1753-
"embedding": {
1754-
"type": "array",
1755-
"items": {
1756-
"type": "number"
1757-
}
1758-
},
17591753
"index": {
17601754
"type": "integer"
17611755
},
@@ -2439,6 +2433,10 @@
24392433
"echo": {
24402434
"type": "boolean"
24412435
},
2436+
"encoding_format": {
2437+
"description": "Embedding encoding format: \"float\" (default) or \"base64\" (OpenAI Node.js SDK default)",
2438+
"type": "string"
2439+
},
24422440
"file": {
24432441
"description": "whisper",
24442442
"type": "string"

swagger/swagger.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,6 @@ definitions:
498498
properties:
499499
b64_json:
500500
type: string
501-
embedding:
502-
items:
503-
type: number
504-
type: array
505501
index:
506502
type: integer
507503
object:
@@ -950,6 +946,10 @@ definitions:
950946
type: integer
951947
echo:
952948
type: boolean
949+
encoding_format:
950+
description: 'Embedding encoding format: "float" (default) or "base64" (OpenAI
951+
Node.js SDK default)'
952+
type: string
953953
file:
954954
description: whisper
955955
type: string

0 commit comments

Comments
 (0)