mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
9cbe2644b1
commit
ab877e1d7e
1 changed files with 1 additions and 1 deletions
|
|
@ -697,7 +697,7 @@ def apply_params_to_form_data(form_data, model):
|
||||||
# If custom_params are provided, merge them into params
|
# If custom_params are provided, merge them into params
|
||||||
params = deep_update(params, custom_params)
|
params = deep_update(params, custom_params)
|
||||||
|
|
||||||
if model.get("ollama"):
|
if model.get("owned_by") == "ollama":
|
||||||
# Ollama specific parameters
|
# Ollama specific parameters
|
||||||
form_data["options"] = params
|
form_data["options"] = params
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue