← back to Exo
removing sorting of models by name
3eb726cee042bbfa5117f831919c1b3ca96ab613 · 2024-11-13 15:31:46 -0800 · cadenmackenzie
Files touched
Diff
commit 3eb726cee042bbfa5117f831919c1b3ca96ab613
Author: cadenmackenzie <cadenmackenzie@gmail.com>
Date: Wed Nov 13 15:31:46 2024 -0800
removing sorting of models by name
---
exo/tinychat/index.js | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/exo/tinychat/index.js b/exo/tinychat/index.js
index 07f0e559..adaaa84d 100644
--- a/exo/tinychat/index.js
+++ b/exo/tinychat/index.js
@@ -88,16 +88,11 @@ document.addEventListener("alpine:init", () => {
const sel = document.querySelector('.model-select');
sel.innerHTML = '';
- // Convert the model pool to an array of [key, value] pairs and sort by name
- const sortedModels = Object.entries(data["model pool"]).sort((a, b) =>
- a[1].name.localeCompare(b[1].name)
- );
-
- sortedModels.forEach(([key, value]) => {
+ // Use the model pool entries in their original order
+ Object.entries(data["model pool"]).forEach(([key, value]) => {
const opt = document.createElement("option");
opt.value = key;
opt.textContent = `${value.name}${value.downloaded ? ' (downloaded)' : ''}`;
- opt.classList.add(value.downloaded ? 'model-downloaded' : 'model-not-downloaded');
sel.appendChild(opt);
});
} catch (error) {
← 95ce6657 removing unneccesary css
·
back to Exo
·
fix safari issue cbeb1b33 →