mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
return all best of sequences
This commit is contained in:
parent
93c41e8f6d
commit
c63db48652
5 changed files with 41 additions and 12 deletions
|
@ -902,7 +902,8 @@ def get_optional_params( # use the openai defaults
|
|||
if top_p != 1:
|
||||
optional_params["top_p"] = top_p
|
||||
if n != 1:
|
||||
optional_params["n"] = n
|
||||
optional_params["best_of"] = n
|
||||
optional_params["do_sample"] = True # need to sample if you want best of for hf inference endpoints
|
||||
if stream:
|
||||
optional_params["stream"] = stream
|
||||
if stop != None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue