feat(swagger): update swagger (#4211)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
This commit is contained in:
LocalAI [bot] 2024-11-20 23:10:51 +01:00 committed by GitHub
parent 7adbc16bae
commit eaf0e3022a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 175 additions and 0 deletions

View file

@ -295,6 +295,20 @@ definitions:
- StatusResponse_BUSY
- StatusResponse_READY
- StatusResponse_ERROR
proto.VADResponse:
properties:
segments:
items:
$ref: '#/definitions/proto.VADSegment'
type: array
type: object
proto.VADSegment:
properties:
end:
type: number
start:
type: number
type: object
schema.BackendMonitorRequest:
properties:
model:
@ -701,6 +715,18 @@ definitions:
type:
type: string
type: object
schema.VADRequest:
description: VAD request body
properties:
audio:
description: model name or full path
items:
type: number
type: array
model:
description: model name or full path
type: string
type: object
info:
contact:
name: LocalAI
@ -1188,6 +1214,23 @@ paths:
schema:
$ref: '#/definitions/schema.TokenizeResponse'
summary: Tokenize the input.
/vad:
post:
consumes:
- application/json
parameters:
- description: query params
in: body
name: request
required: true
schema:
$ref: '#/definitions/schema.VADRequest'
responses:
"200":
description: Response
schema:
$ref: '#/definitions/proto.VADResponse'
summary: Detect voice fragments in an audio stream
securityDefinitions:
BearerAuth:
in: header