This commit is contained in:
crsawyer 2026-02-06 12:02:55 +00:00 committed by GitHub
commit 4fdf2e321a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
}