Compare commits

...

3 Commits

Author SHA1 Message Date
crsawyer 4fdf2e321a
Merge 89ee8644a2 into 3688c4f504 2026-02-06 12:02:55 +00:00
Caleb Sawyer 89ee8644a2 formatting changes from linting 2026-02-05 14:14:39 -06:00
Caleb Sawyer 40388cf8dd fix(models): filter out non-webui models and handle single option selection 2026-02-05 14:09:18 -06:00
2 changed files with 11 additions and 1 deletions

Binary file not shown.

View File

@ -47,7 +47,13 @@
upToMessageId
}: Props = $props();
let options = $derived(modelOptions());
let options = $derived(
modelOptions().filter((option) => {
// Exclude models that are marked as not for webui use
const modelProps = modelsStore.getModelProps(option.model);
return modelProps?.webui !== false;
})
);
let loading = $derived(modelsLoading());
let updating = $derived(modelsUpdating());
let activeId = $derived(selectedModelId());
@ -330,6 +336,10 @@
return options.find((option) => option.id === activeId);
}
if (options.length === 1) {
// Only one option - show it
return options[0];
}
// No selection - return undefined to show "Select model"
return undefined;
}