Move Per-Chat Override section to bottom of model configuration UI

frdel committed Mar 25, 2026 at 20:58 UTC 4d2342507283c55821ee5e7cf98f95c4c7da20b2
1 file changed +25 -26
plugins/_model_config/webui/config.html
+25 -26
@@ -26,32 +26,6 @@
26 <template x-if="config && $store.modelConfig._loaded">
27 <div class="model-config-sections">
28
29 - <!-- Per-Chat Override -->
30 - <div class="model-section">
31 - <div class="section-title">Per-Chat Override</div>
32 - <div class="section-description">Allow switching model presets from the chat navigation bar. New chats inherit the active preset.</div>
33 -
34 - <div class="field">
35 - <div class="field-label">
36 - <div class="field-title">Enable model switcher</div>
37 - <div class="field-description">Show a preset switcher in the chat navigation bar. Overrides main and utility model for the current chat.</div>
38 - </div>
39 - <div class="field-control">
40 - <label class="toggle">
41 - <input type="checkbox" x-model="config.allow_chat_override" />
42 - <span class="toggler"></span>
43 - </label>
44 - </div>
45 - </div>
46 -
47 - <div class="override-presets-link" x-show="config.allow_chat_override">
48 - <button class="text-button" @click="openModal('/plugins/_model_config/webui/main.html')">
49 - <span class="material-symbols-outlined">tune</span>
50 - <span>Edit Presets</span>
51 - </button>
52 - </div>
53 - </div>
54 -
29 <!-- Model Sections (Main, Utility, Embedding) -->
30 <template x-for="section in $store.modelConfig.MODEL_SECTIONS" :key="section.key">
31 <div class="model-section">
@@ -278,6 +252,31 @@
252 </div>
253 </template>
254
255 +
256 + <!-- Per-Chat Override -->
257 + <div class="model-section">
258 + <div class="section-title">Per-Chat Override</div>
259 + <div class="section-description">Allow switching model presets from the chat navigation bar. New chats inherit the active preset.</div>
260 + <div class="field">
261 + <div class="field-label">
262 + <div class="field-title">Enable model switcher</div>
263 + <div class="field-description">Show a preset switcher in the chat navigation bar. Overrides main and utility model for the current chat.</div>
264 + </div>
265 + <div class="field-control">
266 + <label class="toggle">
267 + <input type="checkbox" x-model="config.allow_chat_override" />
268 + <span class="toggler"></span>
269 + </label>
270 + </div>
271 + </div>
272 + <div class="override-presets-link" x-show="config.allow_chat_override">
273 + <button class="text-button" @click="openModal('/plugins/_model_config/webui/main.html')">
274 + <span class="material-symbols-outlined">tune</span>
275 + <span>Edit Presets</span>
276 + </button>
277 + </div>
278 + </div>
279 +
280 </div>
281 </template>
282 </div>