We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dadc88 commit 10b26eeCopy full SHA for 10b26ee
2 files changed
tools/server/public/index.html.gz
-1.15 KB
tools/server/webui/src/lib/components/app/models/ModelsSelector.svelte
@@ -42,7 +42,13 @@
42
useGlobalSelection = false
43
}: Props = $props();
44
45
- let options = $derived(modelOptions());
+ let options = $derived(
46
+ modelOptions().filter((option) => {
47
+ const modelProps = modelsStore.getModelProps(option.model);
48
+
49
+ return modelProps?.webui !== false;
50
+ })
51
+ );
52
let loading = $derived(modelsLoading());
53
let updating = $derived(modelsUpdating());
54
let activeId = $derived(selectedModelId());
@@ -245,6 +251,9 @@
245
251
return options.find((option) => option.id === activeId);
246
252
}
247
253
254
+ if (options.length === 1) {
255
+ return options[0];
256
+ }
248
257
// No selection - return undefined to show "Select model"
249
258
return undefined;
250
259
0 commit comments