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