mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
fixed stop sequence overwriting
This commit is contained in:
parent
1aff35524d
commit
2bc11e00df
1 changed files with 2 additions and 1 deletions
|
@ -742,7 +742,8 @@ class ServerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||||
genparams["prompt"] = messages_string
|
genparams["prompt"] = messages_string
|
||||||
if len(images_added)>0:
|
if len(images_added)>0:
|
||||||
genparams["images"] = images_added
|
genparams["images"] = images_added
|
||||||
genparams["stop_sequence"] = [user_message_start.strip(),assistant_message_start.strip()]
|
if len(genparams.get('stop_sequence', []))==0: #only set stop seq if it wont overwrite existing
|
||||||
|
genparams["stop_sequence"] = [user_message_start.strip(),assistant_message_start.strip()]
|
||||||
genparams["trim_stop"] = True
|
genparams["trim_stop"] = True
|
||||||
|
|
||||||
elif api_format==5:
|
elif api_format==5:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue