From f84f6f8b186ed479cd7223454cada09f1a4ecaec Mon Sep 17 00:00:00 2001 From: TheLast Date: Tue, 27 Jan 2026 22:46:32 +0200 Subject: [PATCH] HA add-on: add configurable primary model (model_primary option) --- papur-addon/config.yaml | 6 ++++++ papur-addon/run.sh | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/papur-addon/config.yaml b/papur-addon/config.yaml index 96af6ac..91ba48a 100644 --- a/papur-addon/config.yaml +++ b/papur-addon/config.yaml @@ -19,14 +19,20 @@ options: # Optional: lock DMs to specific Telegram user ids (comma-separated). # If set, add-on will use dmPolicy=allowlist and allowFrom=. telegram_allow_from: "" + + # Model selection (string like "openai-codex/gpt-5.2" or "ollama/gpt-oss:20b") + model_primary: "openai-codex/gpt-5.2" + homeassistant_token: "" mikrotik_host: "192.168.88.1" mikrotik_ssh_user: "papur" mikrotik_ssh_key_path: "/data/keys/mikrotik_papur_nopw" + schema: telegram_bot_token: str timezone: str telegram_allow_from: str? + model_primary: str homeassistant_token: str? mikrotik_host: str mikrotik_ssh_user: str diff --git a/papur-addon/run.sh b/papur-addon/run.sh index 92d72e4..e2b8fab 100644 --- a/papur-addon/run.sh +++ b/papur-addon/run.sh @@ -12,6 +12,7 @@ fi BOT_TOKEN=$(jq -r '.telegram_bot_token // empty' "$OPTIONS_FILE") TZNAME=$(jq -r '.timezone // "Europe/Sofia"' "$OPTIONS_FILE") ALLOW_FROM_RAW=$(jq -r '.telegram_allow_from // empty' "$OPTIONS_FILE") +MODEL_PRIMARY=$(jq -r '.model_primary // "openai-codex/gpt-5.2"' "$OPTIONS_FILE") HA_TOKEN=$(jq -r '.homeassistant_token // empty' "$OPTIONS_FILE") MT_HOST=$(jq -r '.mikrotik_host // "192.168.88.1"' "$OPTIONS_FILE") MT_USER=$(jq -r '.mikrotik_ssh_user // "papur"' "$OPTIONS_FILE") @@ -52,7 +53,11 @@ cat > /data/.clawdbot/clawdbot.json < /data/.clawdbot/clawdbot.json <}"