UI: move the derived context size flag into connection pane
Signed| @@ -220,10 +220,6 @@ | ||
| 220 | 220 | <div data-preset-manager-delete="textgenerationwebui" class="margin0 menu_button_icon menu_button" title="Delete the preset" data-i18n="[title]Delete the preset"> |
| 221 | 221 | <i class="fa-fw fa-solid fa-trash-can"></i> |
| 222 | 222 | </div> |
| 223 | - <label for="context_size_derived" class="checkbox_label flex1" title="Use backend provided context size, when available." data-i18n="[title]context_size_derived"> | |
| 224 | - <input id="context_size_derived" type="checkbox" style="display:none;" /> | |
| 225 | - <small><i class="fa-solid fa-bolt menu_button margin0"></i></small> | |
| 226 | - </label> | |
| 227 | 223 | </div> |
| 228 | 224 | </div> |
| 229 | 225 | <div class="flex-container flexNoGap"> |
| @@ -3272,6 +3268,12 @@ | ||
| 3272 | 3268 | </label> |
| 3273 | 3269 | <a id="viewSecrets" href="javascript:void(0);" data-i18n="[missing_key_text]Missing key;[key_saved_text]Key saved" missing_key_text="❌ Missing key" key_saved_text="✔️ Key saved"><span data-i18n="View hidden API keys">View hidden API keys</span></a> |
| 3274 | 3270 | </div> |
| 3271 | + <div> | |
| 3272 | + <label data-tg-type="koboldcpp, llamacpp" class="checkbox_label margin-bot-10px" for="context_size_derived"> | |
| 3273 | + <input type="checkbox" id="context_size_derived" /> | |
| 3274 | + <span data-i18n="Derive settings from backend">Derive settings from backend</span> | |
| 3275 | + </label> | |
| 3276 | + </div> | |
| 3275 | 3277 | </div> |
| 3276 | 3278 | </div> |
| 3277 | 3279 | <div id="advanced-formatting-button" class="drawer"> |
| @@ -1482,7 +1482,7 @@ async function loadPowerUserSettings(settings, data) { | ||
| 1482 | 1482 | $('#example_messages_behavior').val(getExampleMessagesBehavior()); |
| 1483 | 1483 | $(`#example_messages_behavior option[value="${getExampleMessagesBehavior()}"]`).prop('selected', true); |
| 1484 | 1484 | $('#context_derived').parent().find('i').toggleClass('toggleEnabled', !!power_user.context_derived); |
| 1485 | 1485 | $('#context_size_derived').parent().find('i').toggleClassprop('toggleEnabledchecked', !!power_user.context_size_derived); |
| 1486 | 1486 | |
| 1487 | 1487 | $('#console_log_prompts').prop('checked', power_user.console_log_prompts); |
| 1488 | 1488 | $('#request_token_probabilities').prop('checked', power_user.request_token_probabilities); |
| @@ -3085,7 +3085,7 @@ $(document).ready(() => { | ||
| 3085 | 3085 | }); |
| 3086 | 3086 | |
| 3087 | 3087 | $('#context_size_derived').on('change', function () { |
| 3088 | 3088 | $('#context_size_derived').parent().find('i').toggleClassprop('toggleEnabledchecked', !!power_user.context_size_derived); |
| 3089 | 3089 | }); |
| 3090 | 3090 | |
| 3091 | 3091 | $('#always-force-name2-checkbox').change(function () { |