Add new parameters to API extension
This commit is contained in:
parent
9e7204bef4
commit
8e0a997c60
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ def build_parameters(body, chat=False):
|
||||||
'typical_p': float(body.get('typical_p', body.get('typical', 1))),
|
'typical_p': float(body.get('typical_p', body.get('typical', 1))),
|
||||||
'epsilon_cutoff': float(body.get('epsilon_cutoff', 0)),
|
'epsilon_cutoff': float(body.get('epsilon_cutoff', 0)),
|
||||||
'eta_cutoff': float(body.get('eta_cutoff', 0)),
|
'eta_cutoff': float(body.get('eta_cutoff', 0)),
|
||||||
|
'tfs': float(body.get('tfs', 1)),
|
||||||
|
'top_a': float(body.get('top_a', 0)),
|
||||||
'repetition_penalty': float(body.get('repetition_penalty', body.get('rep_pen', 1.1))),
|
'repetition_penalty': float(body.get('repetition_penalty', body.get('rep_pen', 1.1))),
|
||||||
'encoder_repetition_penalty': float(body.get('encoder_repetition_penalty', 1.0)),
|
'encoder_repetition_penalty': float(body.get('encoder_repetition_penalty', 1.0)),
|
||||||
'top_k': int(body.get('top_k', 0)),
|
'top_k': int(body.get('top_k', 0)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue