mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Api extension bug fix
This commit is contained in:
parent
96ba55501c
commit
ff0d0ac552
@ -59,6 +59,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||||||
'truncation_length': int(body.get('truncation_length', 2048)),
|
'truncation_length': int(body.get('truncation_length', 2048)),
|
||||||
'ban_eos_token': bool(body.get('ban_eos_token', False)),
|
'ban_eos_token': bool(body.get('ban_eos_token', False)),
|
||||||
'skip_special_tokens': bool(body.get('skip_special_tokens', True)),
|
'skip_special_tokens': bool(body.get('skip_special_tokens', True)),
|
||||||
|
'custom_stopping_strings': '', # leave this blank
|
||||||
'stopping_strings': body.get('stopping_strings', []),
|
'stopping_strings': body.get('stopping_strings', []),
|
||||||
}
|
}
|
||||||
stopping_strings = generate_params.pop('stopping_strings')
|
stopping_strings = generate_params.pop('stopping_strings')
|
||||||
|
Loading…
Reference in New Issue
Block a user