feat(swagger): update swagger (#3664)

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-09-26 10:57:40 +02:00 committed by GitHub
parent ef1507d000
commit d6522e69ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 37 additions and 0 deletions

View File

@ -972,6 +972,14 @@ const docTemplate = `{
}
}
},
"model.Model": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"openai.Assistant": {
"type": "object",
"properties": {
@ -1682,6 +1690,12 @@ const docTemplate = `{
"items": {
"type": "string"
}
},
"loaded_models": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Model"
}
}
}
},

View File

@ -965,6 +965,14 @@
}
}
},
"model.Model": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"openai.Assistant": {
"type": "object",
"properties": {
@ -1675,6 +1683,12 @@
"items": {
"type": "string"
}
},
"loaded_models": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Model"
}
}
}
},

View File

@ -168,6 +168,11 @@ definitions:
type: string
type: array
type: object
model.Model:
properties:
id:
type: string
type: object
openai.Assistant:
properties:
created:
@ -652,6 +657,10 @@ definitions:
items:
type: string
type: array
loaded_models:
items:
$ref: '#/definitions/model.Model'
type: array
type: object
schema.TTSRequest:
description: TTS request body