mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-12 22:04:59 +00:00
feat(swagger): update swagger (#2464)
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:
parent
b99182c8d4
commit
fb0f188c93
3 changed files with 121 additions and 3 deletions
|
@ -367,14 +367,21 @@ definitions:
|
|||
type: integer
|
||||
type: object
|
||||
schema.TTSRequest:
|
||||
description: TTS request body
|
||||
properties:
|
||||
backend:
|
||||
type: string
|
||||
input:
|
||||
description: text input
|
||||
type: string
|
||||
language:
|
||||
description: (optional) language to use with TTS model
|
||||
type: string
|
||||
model:
|
||||
description: model name or full path
|
||||
type: string
|
||||
voice:
|
||||
description: voice audio file or speaker id
|
||||
type: string
|
||||
type: object
|
||||
schema.ToolCall:
|
||||
|
@ -399,6 +406,25 @@ info:
|
|||
title: LocalAI API
|
||||
version: 2.0.0
|
||||
paths:
|
||||
/tts:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: query params
|
||||
in: body
|
||||
name: request
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/schema.TTSRequest'
|
||||
produces:
|
||||
- audio/x-wav
|
||||
responses:
|
||||
"200":
|
||||
description: generated audio/wav file
|
||||
schema:
|
||||
type: string
|
||||
summary: Generates audio from the input text.
|
||||
/v1/assistants:
|
||||
post:
|
||||
parameters:
|
||||
|
@ -416,6 +442,8 @@ paths:
|
|||
summary: Create an assistant with a model and instructions.
|
||||
/v1/audio/speech:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: query params
|
||||
in: body
|
||||
|
@ -423,9 +451,11 @@ paths:
|
|||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/schema.TTSRequest'
|
||||
produces:
|
||||
- audio/x-wav
|
||||
responses:
|
||||
"200":
|
||||
description: Response
|
||||
description: generated audio/wav file
|
||||
schema:
|
||||
type: string
|
||||
summary: Generates audio from the input text.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue