]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ui: fix audio and video modality detection (#23756)
authorValdikSS <redacted>
Thu, 28 May 2026 15:36:10 +0000 (18:36 +0300)
committerGitHub <redacted>
Thu, 28 May 2026 15:36:10 +0000 (17:36 +0200)
When model props are fetched asynchronously from the server,
modelPropsVersion is incremented to trigger reactivity, but
only the vision effect was listening to it.

tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte

index 07f079f5b5195b7aa456b187922eaa8db48d826b..fd866b243eac694f076d1bfc7c8bd2af3dfdc2b9 100644 (file)
        });
 
        $effect(() => {
+               void modelPropsVersion;
+
                hasAudioModality = activeModelId ? modelsStore.modelSupportsAudio(activeModelId) : false;
        });
 
        $effect(() => {
+               void modelPropsVersion;
+
                hasVideoModality = activeModelId ? modelsStore.modelSupportsVideo(activeModelId) : false;
        });