From: ValdikSS Date: Thu, 28 May 2026 15:36:10 +0000 (+0300) Subject: ui: fix audio and video modality detection (#23756) X-Git-Tag: upstream/0.0.10438~1041 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=2f6c815dc450106ef877ae32f4472bfd5cf83e47;p=pkg%2Fggml%2Fsources%2Fllama.cpp ui: fix audio and video modality detection (#23756) When model props are fetched asynchronously from the server, modelPropsVersion is incremented to trigger reactivity, but only the vision effect was listening to it. --- diff --git a/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte b/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte index 07f079f5b..fd866b243 100644 --- a/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte +++ b/tools/ui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionModels.svelte @@ -106,10 +106,14 @@ }); $effect(() => { + void modelPropsVersion; + hasAudioModality = activeModelId ? modelsStore.modelSupportsAudio(activeModelId) : false; }); $effect(() => { + void modelPropsVersion; + hasVideoModality = activeModelId ? modelsStore.modelSupportsVideo(activeModelId) : false; });