Commit Graph

8 Commits

Author SHA1 Message Date
wouser 67160b2de0 fix: make relay fast and concurrency-safe 2026-07-20 06:17:31 +02:00
wouser 5be3f78fe6 v3.1: Fix Telegram delivery via hermes send CLI subprocess
- Replace send_message_tool import with hermes send CLI subprocess
- Remove broken _ensure_gw_config() that clobbered env vars
- Remove unused CircuitBreaker class and tenacity import
- Clean up docstring and unused imports
- Token fix: requires real TELEGRAM_BOT_TOKEN in ~/.hermes/.env
- Systemd drop-in: /etc/systemd/system/hermes-relay.service.d/telegram.conf
2026-07-15 10:51:47 +02:00
wouser 5daa338c78 feat: Implement high-impact code optimizations
- Migrate from Flask to Quart (async) for better concurrency
- Add httpx with HTTP/2 connection pooling for Telegram
- Add diskcache for caching health check responses
- Increase ThreadPoolExecutor workers from 4 to 8 (configurable)
- Remove hardcoded paths - use environment variables
- Add circuit breaker pattern for resilient external calls
- Add proper timeout handling for health checks
- Pin all dependencies in requirements.txt
- Add graceful startup/shutdown handlers
- Pre-warm agent in background thread on startup
2026-06-16 21:50:54 +02:00
wouser 58ca990673 v2.1.1: Alleen antwoord naar Telegram sturen (geen Vraag:/Antwoord: prefix) 2026-06-16 14:04:59 +02:00
wouser e05fa9c5c1 v2.1: Switch to voice-assistant profile
- Use voice-assistant profile (minimal chatbot, max_turns=10, nous provider)
- Remove /fast prefix and model override - handled by profile config
- Use messaging toolset for send_message tool (Telegram delivery)
- Add hardcoded TELEGRAM_BOT_TOKEN and TELEGRAM_HOME_CHANNEL to relay env
- Telegram delivery now works via gateway's send_message_tool
- Version bump to 2.1
- Health endpoint shows profile: voice-assistant
2026-06-16 09:37:48 +02:00
wouser 75311845ee chore: relay v2 cleanup — remove f-strings, add version/mode to health endpoint 2026-06-08 19:00:10 +02:00
wouser 1bac8db3c5 v1.1: Warme agent — directe Python import i.p.v. subprocess
- Vervang subprocess calls naar hermes chat -q door directe Python import
- Nieuwe hermes_client.py met warme AIAgent (eenmalig init, hergebruik per query)
- Initializing agent overhead: 3-5s per query -> 0.48s eenmalig
- Queries na eerste zijn ~5s (alleen LLM API tijd)
- Auxiliary vision provider leeggezet (geen DNS lookup naar Nous)
2026-06-03 04:53:42 +02:00
wouser 5f83c410be Initial release v1.0 - Flask bridge tussen Node-RED en Hermes Agent 2026-06-02 14:00:11 +02:00