feat(swagger): update swagger (#4155)

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-14 22:36:53 +01:00 committed by GitHub
parent de2b5748c3
commit 62d0d004fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 200 additions and 37 deletions

View file

@ -272,6 +272,25 @@
}
}
},
"/tokenMetrics": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"audio/x-wav"
],
"summary": "Get TokenMetrics for Active Slot.",
"responses": {
"200": {
"description": "generated audio/wav file",
"schema": {
"type": "string"
}
}
}
}
},
"/tts": {
"post": {
"consumes": [
@ -716,6 +735,38 @@
}
}
}
},
"/v1/tokenMetrics": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"audio/x-wav"
],
"summary": "Get TokenMetrics for Active Slot.",
"responses": {
"200": {
"description": "generated audio/wav file",
"schema": {
"type": "string"
}
}
}
}
},
"/v1/tokenize": {
"post": {
"summary": "Tokenize the input.",
"responses": {
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/schema.TokenizeResponse"
}
}
}
}
}
},
"definitions": {
@ -965,14 +1016,6 @@
}
}
},
"model.Model": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"openai.Assistant": {
"type": "object",
"properties": {
@ -1675,6 +1718,14 @@
}
}
},
"schema.SysInfoModel": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"schema.SystemInformationResponse": {
"type": "object",
"properties": {
@ -1687,7 +1738,7 @@
"loaded_models": {
"type": "array",
"items": {
"$ref": "#/definitions/model.Model"
"$ref": "#/definitions/schema.SysInfoModel"
}
}
}
@ -1711,13 +1762,24 @@
"description": "model name or full path",
"type": "string"
},
"response_format": {
"description": "(optional) output format",
"type": "string"
},
"voice": {
"description": "voice audio file or speaker id",
"type": "string"
},
"response_format": {
"description": "(optional) output format of generated audio file, defaults to wav, accept wav, mp3, flac, aac, opus",
"type": "string"
}
}
},
"schema.TokenizeResponse": {
"type": "object",
"properties": {
"tokens": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
@ -1746,4 +1808,4 @@
"in": "header"
}
}
}
}