Skip to content

Commit

Permalink
feat(swagger): update swagger (mudler#3664)
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mudler <[email protected]>
  • Loading branch information
localai-bot and mudler authored Sep 26, 2024
1 parent ef1507d commit d6522e6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,14 @@ const docTemplate = `{
}
}
},
"model.Model": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"openai.Assistant": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1682,6 +1690,12 @@ const docTemplate = `{
"items": {
"type": "string"
}
},
"loaded_models": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Model"
}
}
}
},
Expand Down
14 changes: 14 additions & 0 deletions swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,14 @@
}
}
},
"model.Model": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"openai.Assistant": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1675,6 +1683,12 @@
"items": {
"type": "string"
}
},
"loaded_models": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Model"
}
}
}
},
Expand Down
9 changes: 9 additions & 0 deletions swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ definitions:
type: string
type: array
type: object
model.Model:
properties:
id:
type: string
type: object
openai.Assistant:
properties:
created:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d6522e6

Please sign in to comment.