From f9afd79f3ecb0fd6ef1e0adeb0e4a10fdb5ecb07 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Wed, 29 Apr 2026 02:19:24 +0000 Subject: [PATCH] fix: Add openai and matrix-nio dependencies for Hermes Matrix bridge --- ai/compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 ai/compose.yml diff --git a/ai/compose.yml b/ai/compose.yml old mode 100644 new mode 100755 index 460d44d..639df16 --- a/ai/compose.yml +++ b/ai/compose.yml @@ -30,7 +30,10 @@ services: container_name: hermes restart: always # Gateway run enables the internal API server on port 8642 - command: gateway run + # Install openai and matrix-nio for Matrix bridge compatibility on startup + # Uses uv (modern Python package manager) with --system flag for venv installation + entrypoint: > + sh -c "/opt/hermes/.venv/bin/uv pip install openai matrix-nio[encryption] --system -q && /opt/hermes/.venv/bin/hermes gateway run" environment: - OLLAMA_HOST=http://ollama:11434 - API_SERVER_ENABLED=true @@ -38,9 +41,10 @@ services: - API_SERVER_HOST=0.0.0.0 - API_SERVER_KEY=hermes_local_key - GATEWAY_ALLOW_ALL_USERS=true - - OPENROUTER_API_KEY=${OPENROUTER_API_KEY} + - OPENROUTER_API_KEY=${OPEN...KEY} volumes: - /mnt/HoardingCow_docker_data/Hermes/data:/opt/data + - /mnt/HoardingCow_docker_data/Hermes/venv:/opt/hermes/.venv devices: - /dev/kfd:/dev/kfd - /dev/dri:/dev/dri