Add a grammar editor to the UI (#4061)
This commit is contained in:
parent
08c4fb12ae
commit
08cf150c0c
11 changed files with 75 additions and 62 deletions
|
@ -44,7 +44,7 @@ def build_parameters(body, chat=False):
|
|||
'mirostat_mode': int(body.get('mirostat_mode', 0)),
|
||||
'mirostat_tau': float(body.get('mirostat_tau', 5)),
|
||||
'mirostat_eta': float(body.get('mirostat_eta', 0.1)),
|
||||
'grammar_file': str(body.get('grammar_file', '')),
|
||||
'grammar_string': str(body.get('grammar_string', '')),
|
||||
'guidance_scale': float(body.get('guidance_scale', 1)),
|
||||
'negative_prompt': str(body.get('negative_prompt', '')),
|
||||
'seed': int(body.get('seed', -1)),
|
||||
|
|
|
@ -34,7 +34,7 @@ default_req_params = {
|
|||
'mirostat_mode': 0,
|
||||
'mirostat_tau': 5.0,
|
||||
'mirostat_eta': 0.1,
|
||||
'grammar_file': '',
|
||||
'grammar_string': '',
|
||||
'guidance_scale': 1,
|
||||
'negative_prompt': '',
|
||||
'ban_eos_token': False,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue