aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/assistant/AssistantPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/assistant/AssistantPage.qml')
-rw-r--r--desktop/modules/assistant/AssistantPage.qml22
1 files changed, 15 insertions, 7 deletions
diff --git a/desktop/modules/assistant/AssistantPage.qml b/desktop/modules/assistant/AssistantPage.qml
index 2e40ed4..c6b63fc 100644
--- a/desktop/modules/assistant/AssistantPage.qml
+++ b/desktop/modules/assistant/AssistantPage.qml
@@ -165,8 +165,9 @@ Column {
Small {
width: page.width
wrapMode: Text.Wrap
- text: "The assistant answers with whichever model llama-server has loaded. Load makes one the "
- + "preferred model and loads it now, which swaps out the loaded one for every client."
+ text: "The assistant answers with whichever model llama-server has loaded. Opening it loads "
+ + "the preferred model if another one is in. Load swaps a model in now, for every client, "
+ + "without changing the preference."
}
Small {
@@ -211,13 +212,20 @@ Column {
modelRow.preferred ? "preferred" : ""].filter(s => s).join(" · ")
color: modelRow.preferred ? Theme.accent : Theme.subtext
}
+ // Two separate choices: which model the assistant prefers, kept,
+ // and which one is loaded now, a swap for every client.
Button {
+ id: loadBtn
anchors { right: parent.right; rightMargin: 6; verticalCenter: parent.verticalCenter }
- text: modelRow.loaded ? (modelRow.preferred ? "Loaded" : "Prefer") : "Load"
- enabled: page.asst.loading === "" && !(modelRow.loaded && modelRow.preferred)
- // A loaded model only becomes the preferred one: nothing to swap.
- onClicked: modelRow.loaded ? Prefs.setAssistantModel(modelRow.modelData.id)
- : page.asst.loadModel(modelRow.modelData.id)
+ text: "Load"
+ enabled: page.asst.loading === "" && !modelRow.loaded
+ onClicked: page.asst.loadModel(modelRow.modelData.id)
+ }
+ Button {
+ anchors { right: loadBtn.left; rightMargin: 6; verticalCenter: parent.verticalCenter }
+ text: modelRow.preferred ? "Preferred" : "Prefer"
+ enabled: !modelRow.preferred
+ onClicked: Prefs.setAssistantModel(modelRow.modelData.id)
}
}
}