mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
minor fix
This commit is contained in:
parent
bbebc76817
commit
2a07f2dc2c
2 changed files with 3 additions and 3 deletions
|
@ -19254,7 +19254,7 @@ Current version indicated by LITEVER below.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="settinglabel settingcell">
|
<div class="settinglabel settingcell">
|
||||||
<div class="justifyleft settingsmall">DRY (If supported) <span class="helpicon">?<span class="helptext">An advanced multi-token repetition penalty. May not be available depending on backend, not supported on Horde.</span></span></div>
|
<div class="justifyleft settingsmall">DRY (If supported) <span class="helpicon">?<span class="helptext">An advanced multi-token repetition penalty. Range controlled by Rep-Pen Range. May not be available depending on backend, not supported on Horde.</span></span></div>
|
||||||
<div id="drysupporteddiv">
|
<div id="drysupporteddiv">
|
||||||
<div style="display:flex">
|
<div style="display:flex">
|
||||||
<div class="settinglabel settingcell">
|
<div class="settinglabel settingcell">
|
||||||
|
|
|
@ -1084,7 +1084,7 @@ def generate(genparams, is_quiet=False, stream_flag=False):
|
||||||
if pendingabortkey!="" and pendingabortkey==genkey:
|
if pendingabortkey!="" and pendingabortkey==genkey:
|
||||||
print(f"\nDeferred Abort for GenKey: {pendingabortkey}")
|
print(f"\nDeferred Abort for GenKey: {pendingabortkey}")
|
||||||
pendingabortkey = ""
|
pendingabortkey = ""
|
||||||
return {"text":"","status":-1,"stopreason":-1, "prompt_tokens":0, "completion_tokens": 0}
|
return {"text":"","status":-1,"stopreason":-1, "prompt_tokens":0, "completion_tokens": 0, "total_tokens": 0}
|
||||||
else:
|
else:
|
||||||
ret = handle.generate(inputs)
|
ret = handle.generate(inputs)
|
||||||
outstr = ""
|
outstr = ""
|
||||||
|
@ -1502,7 +1502,7 @@ class ServerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||||
|
|
||||||
return generate(genparams=genparams,is_quiet=is_quiet,stream_flag=stream_flag)
|
return generate(genparams=genparams,is_quiet=is_quiet,stream_flag=stream_flag)
|
||||||
|
|
||||||
genout = {"text": "", "status": -1, "stopreason": -1, "prompt_tokens":0, "completion_tokens": 0}
|
genout = {"text": "", "status": -1, "stopreason": -1, "prompt_tokens":0, "completion_tokens": 0, "total_tokens": 0}
|
||||||
if stream_flag:
|
if stream_flag:
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
executor = ThreadPoolExecutor()
|
executor = ThreadPoolExecutor()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue