Skip to content

Commit 2a07f2d

Browse files
committed
minor fix
1 parent bbebc76 commit 2a07f2d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

klite.embd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19254,7 +19254,7 @@ Current version indicated by LITEVER below.
1925419254
</div>
1925519255

1925619256
<div class="settinglabel settingcell">
19257-
<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>
19257+
<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>
1925819258
<div id="drysupporteddiv">
1925919259
<div style="display:flex">
1926019260
<div class="settinglabel settingcell">

koboldcpp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ def generate(genparams, is_quiet=False, stream_flag=False):
10841084
if pendingabortkey!="" and pendingabortkey==genkey:
10851085
print(f"\nDeferred Abort for GenKey: {pendingabortkey}")
10861086
pendingabortkey = ""
1087-
return {"text":"","status":-1,"stopreason":-1, "prompt_tokens":0, "completion_tokens": 0}
1087+
return {"text":"","status":-1,"stopreason":-1, "prompt_tokens":0, "completion_tokens": 0, "total_tokens": 0}
10881088
else:
10891089
ret = handle.generate(inputs)
10901090
outstr = ""
@@ -1502,7 +1502,7 @@ def run_blocking(): # api format 1=basic,2=kai,3=oai,4=oai-chat
15021502

15031503
return generate(genparams=genparams,is_quiet=is_quiet,stream_flag=stream_flag)
15041504

1505-
genout = {"text": "", "status": -1, "stopreason": -1, "prompt_tokens":0, "completion_tokens": 0}
1505+
genout = {"text": "", "status": -1, "stopreason": -1, "prompt_tokens":0, "completion_tokens": 0, "total_tokens": 0}
15061506
if stream_flag:
15071507
loop = asyncio.get_event_loop()
15081508
executor = ThreadPoolExecutor()

0 commit comments

Comments
 (0)