Repository navigation
webui: use server presets as parameter placeholders - #18226
ServeurpersoCom wants to merge 25 commits into
Conversation
1af2a04 to
6555997
Compare
|
Everything is customizable via --webui-config-file. The JSON parameters will be:
Sampling parameters can also be forced via this JSON, but it's recommended to leave them undefined so the backend can provide its defaults. This allows presets.ini in router mode to control them per-model. I think we're complete now, except maybe the "system" selector being empty by default, What do you think @allozaur, good refactoring? Feel free to nitpick or ask for further refactoring: variable renames, structure changes... |
62cffb0 to
9a86a5f
Compare
|
Rebased / static build |
9a86a5f to
93eb337
Compare
45e9de2 to
d2b9097
Compare
|
finish the config() -> getConfig() refactor we started Turns out removing SETTING_CONFIG_DEFAULT was only step 1. Step 2: |
allozaur
left a comment
There was a problem hiding this comment.
@ServeurpersoCom overall great stuff, but architecturally i think it'd be good to address the way how we are getting the config into the stores and components.
|
There is still work to be done (+ doc update) : |
b5516ca to
d18b8d7
Compare
WebUI sampling parameters now default to null and display server presets (from models.ini or CLI args) as placeholders instead of hardcoded defaults. This allows the backend to be the source of truth while users can still override parameters when needed
…atSettingsFields.svelte Co-authored-by: Aleksander Grygier <[email protected]>
…atSettingsFields.svelte Co-authored-by: Aleksander Grygier <[email protected]>
Co-authored-by: Aleksander Grygier <[email protected]>
Co-authored-by: Aleksander Grygier <[email protected]>
Co-authored-by: Aleksander Grygier <[email protected]>
Co-authored-by: Aleksander Grygier <[email protected]>
…nd single-model modes
Remove SETTING_CONFIG_DEFAULT and canSync flag, all settings now sourced from server /props webui_settings. Admin configures UI defaults via --webui-config-file. Config starts empty, populated from server. Placeholder falls back to 'none' when unavailable
Unify theme naming: remove leftover 'auto' references, use 'system' consistently (matches UI label and JSON config)
Introspect SYNCABLE_PARAMETERS types for intelligent defaults, eliminates manual ?? false throughout codebase
…rm.svelte Co-authored-by: Aleksander Grygier <[email protected]>
…atMessageEditForm.svelte Co-authored-by: Aleksander Grygier <[email protected]>
Address review feedback from allozaur
- Clean up unused config imports - Refactor getApiOptions: replace 40-line if-chain with loop - Remove dead ApiProcessingState fields (temperature, topP, speculative)
878aeb6 to
a37e6b0
Compare
|
I think we'll go through the MCP first, it still needs improvement, for example with the JSON schema verification that we already use for toolcalls |
|
Superseded by many PR/refactors |


Make sure to read the contributing guidelines before submitting a PR
WebUI now displays dynamic parameter placeholders from server/model defaults instead of hardcoded values. Sampling parameters are removed from static defaults - the backend becomes the source of truth while users can still override when needed.
Changes:
SETTING_CONFIG_DEFAULTgetParameterPlaceholder(): model presets -> server defaults -> "none"/props?model=X) and single-model mode (/props)Behavior:
default_generation_settings.paramsDemo:
Backend-Params.mp4
Close #18129