mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
rename replace_instruct_placeholders field
This commit is contained in:
parent
be3bba67ff
commit
30cb77a900
2 changed files with 3 additions and 3 deletions
|
@ -1153,8 +1153,8 @@ def generate(genparams, stream_flag=False):
|
|||
banned_tokens = genparams.get('banned_tokens', banned_strings)
|
||||
bypass_eos_token = genparams.get('bypass_eos', False)
|
||||
custom_token_bans = genparams.get('custom_token_bans', '')
|
||||
autoguess_format = genparams.get('autoguess_format', False)
|
||||
if autoguess_format:
|
||||
replace_instruct_placeholders = genparams.get('replace_instruct_placeholders', False)
|
||||
if replace_instruct_placeholders:
|
||||
adapter_obj = {} if chatcompl_adapter is None else chatcompl_adapter
|
||||
system_message_start = adapter_obj.get("system_start", "\n### Instruction:\n")
|
||||
user_message_start = adapter_obj.get("user_start", "\n### Instruction:\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue