Add temperature_last parameter (#4472)
This commit is contained in:
parent
1ab8700d94
commit
aa5d671579
7 changed files with 38 additions and 7 deletions
|
@ -25,6 +25,7 @@ def build_parameters(body, chat=False):
|
|||
'max_tokens_second': int(body.get('max_tokens_second', 0)),
|
||||
'do_sample': bool(body.get('do_sample', True)),
|
||||
'temperature': float(body.get('temperature', 0.5)),
|
||||
'temperature_last': bool(body.get('temperature_last', False)),
|
||||
'top_p': float(body.get('top_p', 1)),
|
||||
'min_p': float(body.get('min_p', 0)),
|
||||
'typical_p': float(body.get('typical_p', body.get('typical', 1))),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue