Filter null-values from /model selection

4522d3cbae85b5a29d3175bd979adf48fa05eef5

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +12 -12Showing whitespace changes
public/index.html+11 -11
@@ -2071,7 +2071,7 @@
20712071 <div>
20722072 <h4 data-i18n="TogetherAI Model">TogetherAI Model</h4>
20732073 <select id="model_togetherai_select">
20742074 <option value="" data-i18n="-- Connect to the API --">
20752075 -- Connect to the API --
20762076 </option>
20772077 </select>
@@ -2095,7 +2095,7 @@
20952095 <div>
20962096 <h4 data-i18n="OpenRouter Model">OpenRouter Model</h4>
20972097 <select id="openrouter_model">
20982098 <option value="" data-i18n="-- Connect to the API --">
20992099 -- Connect to the API --
21002100 </option>
21012101 </select>
@@ -2122,7 +2122,7 @@
21222122 <div>
21232123 <h4 data-i18n="InfermaticAI Model">InfermaticAI Model</h4>
21242124 <select id="model_infermaticai_select">
2125- <option>
2125+ <option value="" data-i18n="-- Connect to the API --">
21262126 -- Connect to the API --
21272127 </option>
21282128 </select>
@@ -2145,7 +2145,7 @@
21452145 <div>
21462146 <h4 data-i18n="DreamGen Model">DreamGen Model</h4>
21472147 <select id="model_dreamgen_select">
2148- <option>
2148+ <option value="" data-i18n="-- Connect to the API --">
21492149 -- Connect to the API --
21502150 </option>
21512151 </select>
@@ -2171,7 +2171,7 @@
21712171 <div class="flex1">
21722172 <h4 data-i18n="Mancer Model">Mancer Model</h4>
21732173 <select id="mancer_model">
21742174 <option value="" data-i18n="-- Connect to the API --">
21752175 -- Connect to the API --
21762176 </option>
21772177 </select>
@@ -2221,7 +2221,7 @@
22212221 For privacy reasons, your API key will be hidden after you reload the page.
22222222 </div>
22232223 <select id="featherless_model">
22242224 <option value="" data-i18n="-- Connect to the API --">
22252225 -- Connect to the API --
22262226 </option>
22272227 </select>
@@ -2249,7 +2249,7 @@
22492249 <div>
22502250 <h4 data-i18n="vLLM Model">vLLM Model</h4>
22512251 <select id="vllm_model">
22522252 <option value="" data-i18n="-- Connect to the API --">
22532253 -- Connect to the API --
22542254 </option>
22552255 </select>
@@ -2295,7 +2295,7 @@
22952295 <div>
22962296 <h4 data-i18n="Aphrodite Model">Aphrodite Model</h4>
22972297 <select id="aphrodite_model">
22982298 <option value="" data-i18n="-- Connect to the API --">
22992299 -- Connect to the API --
23002300 </option>
23012301 </select>
@@ -2338,7 +2338,7 @@
23382338 <span data-i18n="Ollama Model">Ollama Model</span>
23392339 </h4>
23402340 <select id="ollama_model">
23412341 <option value="" data-i18n="-- Connect to the API --">
23422342 -- Connect to the API --
23432343 </option>
23442344 </select>
@@ -2376,7 +2376,7 @@
23762376 EXPERIMENTAL FEATURE. USE AT YOUR OWN RISK. DON'T ASK FOR SUPPORT ON THIS.
23772377 </b>
23782378 <select id="tabby_model">
23792379 <option value="" data-i18n="-- Connect to the API --">
23802380 -- Connect to the API --
23812381 </option>
23822382 </select>
@@ -2704,7 +2704,7 @@
27042704 <div>
27052705 <h4 data-i18n="OpenRouter Model">OpenRouter Model</h4>
27062706 <select id="model_openrouter_select">
27072707 <option value="" data-i18n="-- Connect to the API --">-- Connect to the API --</option>
27082708 </select>
27092709 </div>
27102710 <label for="openrouter_use_fallback" class="checkbox_label marginTopBot5" data-i18n="[title]Allow fallback routes Description" title="Automatically chooses an alternative model if the chosen model can't serve your request.">
public/scripts/slash-commands.js+1 -1
@@ -3470,7 +3470,7 @@ function getModelOptions(quiet) {
34703470 return nullResult;
34713471 }
34723472
34733473 const options = Array.from(modelSelectControl.options).filter(x => x.value);
34743474 return { control: modelSelectControl, options };
34753475}
34763476