mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
include logit_bias in form_data
This commit is contained in:
parent
4a2a12fd21
commit
8aa6415500
1 changed files with 5 additions and 0 deletions
|
|
@ -591,6 +591,11 @@ def apply_params_to_form_data(form_data, model):
|
|||
|
||||
if "reasoning_effort" in params:
|
||||
form_data["reasoning_effort"] = params["reasoning_effort"]
|
||||
if "logit_bias" in params:
|
||||
try:
|
||||
form_data["logit_bias"] = json.loads(params["logit_bias"])
|
||||
except json.JSONDecodeError:
|
||||
print("Invalid JSON format for logit_bias")
|
||||
|
||||
return form_data
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue