mirror of
https://github.com/open-webui/open-webui
synced 2025-02-08 05:56:58 +00:00
Fix max_tokens not being set properly
This commit is contained in:
parent
b72150c881
commit
c2e742afe1
@ -666,6 +666,9 @@ def apply_params_to_form_data(form_data, model):
|
|||||||
if "temperature" in params:
|
if "temperature" in params:
|
||||||
form_data["temperature"] = params["temperature"]
|
form_data["temperature"] = params["temperature"]
|
||||||
|
|
||||||
|
if "max_tokens" in params:
|
||||||
|
form_data["max_tokens"] = params["max_tokens"]
|
||||||
|
|
||||||
if "top_p" in params:
|
if "top_p" in params:
|
||||||
form_data["top_p"] = params["top_p"]
|
form_data["top_p"] = params["top_p"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user