Skip to content

Commit 12f2e1b

Browse files
localai-botmudler
andauthored
feat(swagger): update swagger (#11149)
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 2ecf893 commit 12f2e1b

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

swagger/docs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6897,6 +6897,10 @@ const docTemplate = `{
68976897
"description": "(optional) desired output sample rate",
68986898
"type": "integer"
68996899
},
6900+
"speed": {
6901+
"description": "Speed is the OpenAI ` + "`" + `speed` + "`" + ` field (0.25-4.0). It is a pointer so an\nexplicit ` + "`" + `\"speed\": 0` + "`" + ` (invalid, rejected with 400) is distinguishable\nfrom an omitted field (left at the backend default). It is normalised\ninto Params[\"speed\"] so it reaches the backend over the same channel as\nthe other per-request generation parameters.",
6902+
"type": "number"
6903+
},
69006904
"stream": {
69016905
"description": "(optional) enable streaming TTS",
69026906
"type": "boolean"

swagger/swagger.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6894,6 +6894,10 @@
68946894
"description": "(optional) desired output sample rate",
68956895
"type": "integer"
68966896
},
6897+
"speed": {
6898+
"description": "Speed is the OpenAI `speed` field (0.25-4.0). It is a pointer so an\nexplicit `\"speed\": 0` (invalid, rejected with 400) is distinguishable\nfrom an omitted field (left at the backend default). It is normalised\ninto Params[\"speed\"] so it reaches the backend over the same channel as\nthe other per-request generation parameters.",
6899+
"type": "number"
6900+
},
68976901
"stream": {
68986902
"description": "(optional) enable streaming TTS",
68996903
"type": "boolean"

swagger/swagger.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,6 +2336,14 @@ definitions:
23362336
sample_rate:
23372337
description: (optional) desired output sample rate
23382338
type: integer
2339+
speed:
2340+
description: |-
2341+
Speed is the OpenAI `speed` field (0.25-4.0). It is a pointer so an
2342+
explicit `"speed": 0` (invalid, rejected with 400) is distinguishable
2343+
from an omitted field (left at the backend default). It is normalised
2344+
into Params["speed"] so it reaches the backend over the same channel as
2345+
the other per-request generation parameters.
2346+
type: number
23392347
stream:
23402348
description: (optional) enable streaming TTS
23412349
type: boolean

0 commit comments

Comments
 (0)