diff options
Diffstat (limited to 'desktop/modules/ai/AiModule.qml')
| -rw-r--r-- | desktop/modules/ai/AiModule.qml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/desktop/modules/ai/AiModule.qml b/desktop/modules/ai/AiModule.qml index 4c50224..32e9712 100644 --- a/desktop/modules/ai/AiModule.qml +++ b/desktop/modules/ai/AiModule.qml @@ -40,21 +40,15 @@ Module { llama: "llama.cpp", sd: "stable-diffusion.cpp", assistant: "Desktop assistant", - chat: "Local chat", }) readonly property string assistantSh: Quickshell.env("HOME") + "/Programming/GIT/desktop-assistant/assistant.sh" - // Each project's own control. llamachat has no restart, and --quit answers before the app is gone, so a --daemon - // straight after would find it still running and do nothing: wait for - // --ping to fail first, up to 5s. + // Each project's own control. readonly property var controls: ({ assistant: { start: [assistantSh, "start"], stop: [assistantSh, "stop"], restart: [assistantSh, "restart"] }, - chat: { start: ["llamachat", "--daemon"], stop: ["llamachat", "--quit"], - restart: ["sh", "-c", "llamachat --quit; for _ in $(seq 50); do " - + "llamachat --ping || break; sleep 0.1; done; exec llamachat --daemon"] }, }) function canStart(app) { return controls[app.name] !== undefined; } |
