diff --git a/.github/ISSUE_TEMPLATE/create-new-issue.md b/.github/ISSUE_TEMPLATE/create-new-issue.md index 33161c163..19e45de78 100644 --- a/.github/ISSUE_TEMPLATE/create-new-issue.md +++ b/.github/ISSUE_TEMPLATE/create-new-issue.md @@ -6,6 +6,9 @@ labels: '' assignees: '' --- +Before you proceed, please: +1. Read the Wiki to see if your question is answered - https://github.com/LostRuins/koboldcpp/wiki +2. Search for past issues if someone else has already found a solution **Describe the Issue** A clear and detailed description of what the issue is, and how to duplicate it (if applicable). diff --git a/embd_res/kcpp_docs.embd b/embd_res/kcpp_docs.embd index 56ee83654..b5c042bd5 100644 --- a/embd_res/kcpp_docs.embd +++ b/embd_res/kcpp_docs.embd @@ -1575,6 +1575,31 @@ ] } }, + "/api/extra/speakers_list": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "example": { + "results": ["kobo", "cheery", "sleepy", "shouty", "chatty", "random", "instruct"] + }, + "schema": { + "properties": {}, + "type": "object" + } + } + }, + "description": "Successful request" + } + }, + "summary": "Get a list of available TTS speakers.", + "description": "Get a list of available TTS speakers.", + "tags": [ + "api/extra" + ] + } + }, "/api/extra/embeddings": { "post": { "summary": "Creates an embedding vector representing the input text. Please refer to OpenAI documentation", diff --git a/koboldcpp.py b/koboldcpp.py index 69e096fc0..935d35c81 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -172,6 +172,7 @@ zenity_recent_dir = os.getcwd() zenity_permitted = True thinkformats = [{"start":"<|channel|>analysis<|message|>","end":"<|start|>assistant<|channel|>final<|message|>"}, {"start":"","end":""}, + {"start":"","end":""}, {"start":"<|channel>thought","end":""}] tool_call_pairs = [ #third element is whether its stream-handleable ("", "", True), @@ -5655,7 +5656,7 @@ Change Mode
response_body = make_url_request(f'{epurl}/api/extra/tts', {"input": prompt}) pass - elif clean_path.endswith('/speakers_list'): #xtts compatible + elif clean_path.endswith('/speakers_list') or clean_path.endswith('/api/extra/speakers_list'): #xtts compatible response_body = (json.dumps(voicelist).encode()) #some random voices for them to enjoy elif clean_path.endswith('/speakers'): #xtts compatible tmplist = []