[OpenAI Extension] Add 'max_logits' parameter in logits endpoint (#4916)
This commit is contained in:
parent
eaa1fe67f3
commit
e53f99faa0
3 changed files with 8 additions and 6 deletions
|
@ -8,4 +8,4 @@ def _get_next_logits(body):
|
|||
state = process_parameters(body) if use_samplers else {}
|
||||
state['stream'] = True
|
||||
|
||||
return get_next_logits(body['prompt'], state, use_samplers, "", return_dict=True)
|
||||
return get_next_logits(body['prompt'], state, use_samplers, "", top_logits=body['top_logits'], return_dict=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue