aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/shell.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/shell.qml')
-rw-r--r--desktop/shell.qml11
1 files changed, 7 insertions, 4 deletions
diff --git a/desktop/shell.qml b/desktop/shell.qml
index 4b4f47f..8aaead3 100644
--- a/desktop/shell.qml
+++ b/desktop/shell.qml
@@ -126,17 +126,20 @@ ShellRoot {
// The assistant canvas on SUPER+Home, a view over desktop-assistant's
// socket. See assistant/README.md.
- Assistant { id: assistant; swapping: asstSettings.loading; hears: asstSettings.hears }
+ Assistant { id: assistant; swapping: asstSettings.loading; hears: asstSettings.hears
+ preferred: Prefs.assistantModel }
// The desktop companion, bottom-right of the focused monitor, on SUPER+\.
// She reads the assistant's state. See companion/README.md.
Companion { asst: assistant }
- // Opening the assistant loads its preferred model if another one is in
- // VRAM. See modules/assistant/README.md.
+ // Opening the assistant, or picking another model for its chat, loads
+ // that model if it is a local one and another is in VRAM. See
+ // modules/assistant/README.md.
Connections {
target: assistant
- function onOpenChanged() { if (assistant.open) asstSettings.ensurePreferred(); }
+ function onOpenChanged() { if (assistant.open) asstSettings.ensureModel(assistant.wanted); }
+ function onWantedChanged() { if (assistant.open) asstSettings.ensureModel(assistant.wanted); }
}
// The waybar launcher and the deep-link keybinds all reach this: