mirror of
https://github.com/open-webui/open-webui.git
synced 2025-08-08 18:31:54 +02:00
Merge pull request #9082 from Alex1607/main
FIX max_tokens not being set properly
This commit is contained in:
@@ -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"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user