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:
Classic298 2026-10-10 18:12:45 +02:00 • committed by GitHub
parent eebf6438ab
commit c2a5c7a24e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()
},