mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-21 06:15:18 +00:00
updated docs, handle seed oss thinking
This commit is contained in:
parent
b31877e8ec
commit
929f214bf6
3 changed files with 30 additions and 1 deletions
3
.github/ISSUE_TEMPLATE/create-new-issue.md
vendored
3
.github/ISSUE_TEMPLATE/create-new-issue.md
vendored
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -172,6 +172,7 @@ zenity_recent_dir = os.getcwd()
|
|||
zenity_permitted = True
|
||||
thinkformats = [{"start":"<|channel|>analysis<|message|>","end":"<|start|>assistant<|channel|>final<|message|>"},
|
||||
{"start":"<think>","end":"</think>"},
|
||||
{"start":"<seed:think>","end":"</seed:think>"},
|
||||
{"start":"<|channel>thought","end":"<channel|>"}]
|
||||
tool_call_pairs = [ #third element is whether its stream-handleable
|
||||
("<tool_call>", "</tool_call>", True),
|
||||
|
|
@ -5655,7 +5656,7 @@ Change Mode<br>
|
|||
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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue