Merge 89ee8644a2 into 3688c4f504
This commit is contained in:
commit
4fdf2e321a
Binary file not shown.
|
|
@ -47,7 +47,13 @@
|
||||||
upToMessageId
|
upToMessageId
|
||||||
}: Props = $props();
|
}: 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 loading = $derived(modelsLoading());
|
||||||
let updating = $derived(modelsUpdating());
|
let updating = $derived(modelsUpdating());
|
||||||
let activeId = $derived(selectedModelId());
|
let activeId = $derived(selectedModelId());
|
||||||
|
|
@ -330,6 +336,10 @@
|
||||||
return options.find((option) => option.id === activeId);
|
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"
|
// No selection - return undefined to show "Select model"
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue