From 9525d4279cba88bcf6abde0800932fa255efcd80 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 18 Nov 2024 07:04:21 -0800 Subject: [PATCH] refac: admin model setting include ollama info --- .../components/admin/Settings/Models.svelte | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/lib/components/admin/Settings/Models.svelte b/src/lib/components/admin/Settings/Models.svelte index c79df3c4c..4a61a8208 100644 --- a/src/lib/components/admin/Settings/Models.svelte +++ b/src/lib/components/admin/Settings/Models.svelte @@ -61,8 +61,10 @@ return workspaceModel; } else { return { + ...m, id: m.id, name: m.name, + is_active: true }; } @@ -178,14 +180,26 @@
{model.name}
- {model?.meta?.description ?? model.id} + + {!!model?.meta?.description + ? model?.meta?.description + : model?.ollama?.digest + ? `${model.id} (${model?.ollama?.digest})` + : model.id} +