UI Tweaks (#228)

* sort model names in UI

* add toggle to show model id/name on UI model page
This commit is contained in:
Benson Wong
2025-08-07 11:07:03 -07:00
committed by GitHub
parent 45ea792a3a
commit 5b10b3c23f
2 changed files with 27 additions and 10 deletions
+6
View File
@@ -83,6 +83,12 @@ export function APIProvider({ children, autoStartAPIEvents = true }: APIProvider
case "modelStatus":
{
const models = JSON.parse(message.data) as Model[];
// sort models by name and id
models.sort((a, b) => {
return (a.name + a.id).localeCompare(b.name + b.id);
});
setModels(models);
}
break;