mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
Fix max_tokens not being set properly
This commit is contained in:
parent
b72150c881
commit
c2e742afe1
1 changed files with 3 additions and 0 deletions
|
|
@ -666,6 +666,9 @@ def apply_params_to_form_data(form_data, model):
|
|||
if "temperature" in params:
|
||||
form_data["temperature"] = params["temperature"]
|
||||
|
||||
if "max_tokens" in params:
|
||||
form_data["max_tokens"] = params["max_tokens"]
|
||||
|
||||
if "top_p" in params:
|
||||
form_data["top_p"] = params["top_p"]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue