update docs, added gui for whisper

This commit is contained in:
Concedo 2024-06-01 02:01:49 +08:00
parent 961c789c91
commit a65e0800ab
5 changed files with 584 additions and 158 deletions

View file

@ -532,7 +532,7 @@
"description": "Successful request"
}
},
"summary": "Retrieve the current model string",
"summary": "Retrieve the current model string.",
"tags": [
"api/v1"
]
@ -878,6 +878,50 @@
]
}
},
"/api/extra/transcribe": {
"post": {
"description": "Uses Whisper to perform a Speech-To-Text transcription.",
"requestBody": {
"content": {
"application/json": {
"example": {
"prompt": "",
"audio_data": "base64_wav_data",
},
"schema": {
"properties": {
"audio_data": {
"type": "string",
"description": "Base64 respresentation of a 16-bit 16kHz wave file to be transcribed to text."
}
},
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"example": {
"text": "Hello world"
},
"schema": {
"$ref": "#/components/schemas/ValueResult"
}
}
},
"description": "Successful request"
}
},
"summary": "Uses Whisper to perform a Speech-To-Text transcription.",
"tags": [
"api/extra"
]
}
},
"/sdapi/v1/sd-models": {
"get": {
"description": "Gets a list of image generation models. For koboldcpp, only one model will be returned. If no model is loaded, the list is empty.",