mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
add claude max_tokens_to_sample
This commit is contained in:
parent
cd91312252
commit
d12fadd032
2 changed files with 4 additions and 5 deletions
|
@ -910,6 +910,8 @@ def get_optional_params( # use the openai defaults
|
|||
optional_params["temperature"] = temperature
|
||||
if top_p != 1:
|
||||
optional_params["top_p"] = top_p
|
||||
if max_tokens != float("inf"):
|
||||
optional_params["max_tokens_to_sample"] = max_tokens
|
||||
return optional_params
|
||||
elif model in litellm.cohere_models:
|
||||
# handle cohere params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue