diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-26 09:07:36 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-26 09:07:36 +0200 |
| commit | 1927badfc173c6d9a32deed9ca7776d987b2ea75 (patch) | |
| tree | edf93fca6be222499beab88b39d70e5e22aa4ccc /assistant.py | |
| parent | 14abc878285d961a90f9e56b85c15a091531f6e5 (diff) | |
| download | desktop-assistant-1927badfc173c6d9a32deed9ca7776d987b2ea75.tar.gz desktop-assistant-1927badfc173c6d9a32deed9ca7776d987b2ea75.zip | |
Read controller batteries, stop the model guessing system facts
- Game controllers report battery through their kernel driver, not
BlueZ: bluetooth.sh falls back to the power supply named after the
device address.
- Asked for a VM's IP after a listing without one, the model made one up
without calling a tool. The default system prompt now says facts about
the user's computer, devices, accounts, mail, calendar or money come
only from a tool, or it says it does not know.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'assistant.py')
| -rw-r--r-- | assistant.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/assistant.py b/assistant.py index 3bd4b20..4ea8113 100644 --- a/assistant.py +++ b/assistant.py @@ -46,7 +46,10 @@ DEFAULTS = { "llm": "http://localhost:8181/v1", "system": ("You are a voice assistant. Your replies are spoken aloud, so answer " "briefly in plain sentences: no markdown, no lists, no emoji. " - "Reply in the language the user speaks, Italian or English."), + "Reply in the language the user speaks, Italian or English. " + "Facts about the user's computer, devices, accounts, mail, calendar " + "or money come only from a tool: call one, and if none can tell, " + "say you do not know. Never guess them."), "tool_rounds": 3, "whisper": {"model": "/data/voice-models/whisper/ggml-large-v3-turbo-q5_0.bin", "device": 0, "port": 8182}, |
