Fix - Check for samplers in the connections pannel (#4822)

5f01d91e17130803c6b9f5f249f6001b89ec77bb

Leandro Jofré <leandrotomasjofre@gmail.com>

2 files changed, +3 -3Showing whitespace changes
public/index.html+1 -1
@@ -2395,7 +2395,7 @@
23952395 <h4 data-i18n="Model Providers">Model Providers</h4>
23962396 <select id="openrouter_providers_text" class="openrouter_providers" multiple>
23972397 </select>
23982398 <label class="checkbox_label" data-tg-samplers="openrouter_allow_fallbacks" data-i18n="[title]Automatically chooses an alternative provider if chosen providers can't serve your request." for="openrouter_allow_fallbacks_textgenerationwebui" title="Automatically chooses an alternative provider if chosen providers can't serve your request.">
23992399 <input id="openrouter_allow_fallbacks_textgenerationwebui" type="checkbox" />
24002400 <span data-i18n="Allow fallback providers">Allow fallback providers</span>
24012401 </label>
public/scripts/textgen-settings.js+2 -2
@@ -1080,7 +1080,7 @@ export function initTextGenSettings() {
10801080 * @returns void
10811081 */
10821082function showSamplerControls(apiType = null) {
10831083 $('#textgenerationwebui_api-settings [data-tg-samplers], #textgenerationwebui_api [data-tg-samplers]').each(function(idx, elem) {
10841084 const typeSpecificControlled = $(elem).data('tg-type') !== undefined;
10851085
10861086 if (!typeSpecificControlled) $(this).show();
@@ -1093,7 +1093,7 @@ function showSamplerControls(apiType = null) {
10931093
10941094 if (!samplersActivatedManually?.length || !prioritizeManualSamplerSelect) return;
10951095
10961096 $('#textgenerationwebui_api-settings [data-tg-samplers], #textgenerationwebui_api [data-tg-samplers]').each(function() {
10971097 const tgSamplers = $(this).attr('data-tg-samplers').split(',').map(x => x.trim()).filter(str => str !== '');
10981098
10991099 for (const tgSampler of tgSamplers) {