mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-04 05:08:26 +01:00
bugfixes
This commit is contained in:
parent
aea985d78c
commit
e7e3a09ce4
@ -2276,7 +2276,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="category_selection">
|
<select id="category_selection">
|
||||||
<option value="" disabled selected data-i18n="category">category</option>
|
<option value="" disabled selected data-i18n="category">category</option>
|
||||||
<option value="Favorite" data-i18n="Top">Favorite</option>
|
<!-- <option value="Favorite" data-i18n="Top">Favorite</option> -->
|
||||||
<option value="Top" data-i18n="Top">Top</option>
|
<option value="Top" data-i18n="Top">Top</option>
|
||||||
<option value="New" data-i18n="New">New</option>
|
<option value="New" data-i18n="New">New</option>
|
||||||
<option value="All" data-i18n="All">All</option>
|
<option value="All" data-i18n="All">All</option>
|
||||||
@ -2291,11 +2291,11 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<select id="featherless_model">
|
<!-- <select id="featherless_model">
|
||||||
<option value="" data-i18n="-- Connect to the API --">
|
<option value="" data-i18n="-- Connect to the API --">
|
||||||
-- Connect to the API --
|
-- Connect to the API --
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select> -->
|
||||||
</div>
|
</div>
|
||||||
<div data-tg-type="vllm">
|
<div data-tg-type="vllm">
|
||||||
<div class="flex-container flexFlowColumn">
|
<div class="flex-container flexFlowColumn">
|
||||||
|
@ -412,11 +412,16 @@ export async function loadFeatherlessModels(data) {
|
|||||||
const selectedSortOrder = sortOrderSelect.value;
|
const selectedSortOrder = sortOrderSelect.value;
|
||||||
const selectedClass = classSelect.value;
|
const selectedClass = classSelect.value;
|
||||||
const selectedCategory = categoriesSelect.value;
|
const selectedCategory = categoriesSelect.value;
|
||||||
|
let featherlessTop = [];
|
||||||
|
let featherlessNew = [];
|
||||||
|
|
||||||
const featherlessTop = await fetchFeatherlessStats();
|
if (selectedCategory === 'Top') {
|
||||||
|
featherlessTop = await fetchFeatherlessStats();
|
||||||
|
}
|
||||||
const featherlessIds = featherlessTop.map(stat => stat.id);
|
const featherlessIds = featherlessTop.map(stat => stat.id);
|
||||||
|
if(selectedCategory === 'New') {
|
||||||
const featherlessNew = await fetchFeatherlessNew();
|
featherlessNew = await fetchFeatherlessNew();
|
||||||
|
}
|
||||||
const featherlessNewIds = featherlessNew.map(stat => stat.id);
|
const featherlessNewIds = featherlessNew.map(stat => stat.id);
|
||||||
|
|
||||||
let filteredModels = originalModels.filter(model => {
|
let filteredModels = originalModels.filter(model => {
|
||||||
@ -435,7 +440,7 @@ export async function loadFeatherlessModels(data) {
|
|||||||
return matchesSearch && matchesClass && matchesNew;
|
return matchesSearch && matchesClass && matchesNew;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return null;
|
return matchesSearch;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user