mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
add vicuna translation
This commit is contained in:
parent
afcd6b28cc
commit
af60b2ba77
2 changed files with 26 additions and 3 deletions
|
@ -706,7 +706,10 @@ def get_optional_params( # use the openai defaults
|
|||
optional_params["stream"] = stream
|
||||
return optional_params
|
||||
if max_tokens != float("inf"):
|
||||
optional_params["max_new_tokens"] = max_tokens
|
||||
if "vicuna" in model:
|
||||
optional_params["max_length"] = max_tokens
|
||||
else:
|
||||
optional_params["max_new_tokens"] = max_tokens
|
||||
if temperature != 1:
|
||||
optional_params["temperature"] = temperature
|
||||
if top_p != 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue