Fix - Remove non-samplers from sampler selection popup (#5163) Removed OR's fallback providers checkbox and the generic model and URL inputs for Custom Endpoint.

9383b3ab131c436b34421029651368097d9ff9a0

Leandro Jofré <leandrotomasjofre@gmail.com>

Signed
2 files changed, +2 -2Showing whitespace changes
public/index.html+1 -1
@@ -2436,7 +2436,7 @@
2436 <h4 data-i18n="Model Providers">Model Providers</h4>2436 <h4 data-i18n="Model Providers">Model Providers</h4>
2437 <select id="openrouter_providers_text" class="openrouter_providers" multiple>2437 <select id="openrouter_providers_text" class="openrouter_providers" multiple>
2438 </select>2438 </select>
2439 <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.">2439 <label class="checkbox_label" 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.">
2440 <input id="openrouter_allow_fallbacks_textgenerationwebui" type="checkbox" />2440 <input id="openrouter_allow_fallbacks_textgenerationwebui" type="checkbox" />
2441 <span data-i18n="Allow fallback providers">Allow fallback providers</span>2441 <span data-i18n="Allow fallback providers">Allow fallback providers</span>
2442 </label>2442 </label>
public/scripts/samplerSelect.js+1 -1
@@ -220,7 +220,7 @@ async function listSamplers(main_api, arrayOnly = false) {
220 let availableSamplers;220 let availableSamplers;
221 if (main_api === 'textgenerationwebui') {221 if (main_api === 'textgenerationwebui') {
222 availableSamplers = TGsamplerNames;222 availableSamplers = TGsamplerNames;
223 const valuesToRemove = new Set(['streaming', 'bypass_status_check', 'custom_model', 'legacy_api', 'extensions']);223 const valuesToRemove = new Set(['streaming', 'bypass_status_check', 'custom_model', 'generic_model', 'openrouter_allow_fallbacks', 'legacy_api', 'extensions']);
224 availableSamplers = availableSamplers.filter(sampler => !valuesToRemove.has(sampler));224 availableSamplers = availableSamplers.filter(sampler => !valuesToRemove.has(sampler));
225 availableSamplers.sort();225 availableSamplers.sort();
226 }226 }