mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-31 13:19:28 +00:00
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.
This commit is contained in:
parent
445b7cef62
commit
2f6c815dc4
1 changed files with 4 additions and 0 deletions
|
|
@ -106,10 +106,14 @@
|
|||
});
|
||||
|
||||
$effect(() => {
|
||||
void modelPropsVersion;
|
||||
|
||||
hasAudioModality = activeModelId ? modelsStore.modelSupportsAudio(activeModelId) : false;
|
||||
});
|
||||
|
||||
$effect(() => {
|
||||
void modelPropsVersion;
|
||||
|
||||
hasVideoModality = activeModelId ? modelsStore.modelSupportsVideo(activeModelId) : false;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue