mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-29 08:31:48 -05:00
fix: switching a Chat Controls parameter back to Default ignores your Settings value (#32192)
When a parameter like Temperature was switched to Custom in Chat Controls and then back to Default, the value saved in Settings > General was dropped and the model used its built-in default instead. Default now uses the Settings value again, also in chats where this already happened. Fixes #32013
This commit is contained in:
1 parent
eebf6438ab
commit
c2a5c7a24e
1 file changed
+1
-1
@@ -4039,7 +4039,7 @@
|
||||
...(messages.length > 0 ? { messages } : {}),
|
||||
params: {
|
||||
...$settings?.params,
|
||||
...params,
|
||||
...Object.fromEntries(Object.entries(params).filter(([, value]) => value !== null)),
|
||||
model_controls: $settings?.params?.model_controls ?? {},
|
||||
stop: getStopTokens()
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user