fix: template now uses ollama-cloud as built-in provider + home_channel placeholders

Root cause: 'ollama-cloud' is a built-in Hermes provider. Putting it under
custom_providers with api_key_env broke key resolution. Built-in providers
use their own env-var conventions (OLLAMA_API_KEY, not HERMES_API_KEY).

Changes:
- template: model.provider=ollama-cloud, base_url=ollama.com/v1 (no custom_providers)
- template: gateway.platforms.rocketchat.home_channel with PLACEHOLDER vars
- install.sh: sed-replace placeholders with actual RC_URL/RC_HOME_CHANNEL
- template: .env now uses OLLAMA_API_KEY (what ollama-cloud actually reads)
- Bug #11 (export prefix in rocketchat.env) still needs push
This commit is contained in:
Hermes Agent
2026-06-03 14:05:22 +02:00
parent d6b30d8d87
commit 13a87fb233
3 changed files with 17 additions and 11 deletions
+6
View File
@@ -436,6 +436,12 @@ if [ ! -f "$CONFIG" ]; then
mkdir -p "$HERMES_HOME"
if [ -f "$SCRIPT_DIR/templates/config.yaml" ]; then
cp "$SCRIPT_DIR/templates/config.yaml" "$CONFIG"
# Placeholders mit echten Werten ersetzen
sed -i "s|PLACEHOLDER_RC_URL|${RC_URL}|g" "$CONFIG"
sed -i "s|PLACEHOLDER_RC_HOME_NAME|${RC_HOME_CHANNEL}|g" "$CONFIG"
# chat_id aus room_name auflösen (Rest-API oder User-ID-Mapping)
# Fallback: den room_name direkt als chat_id verwenden
sed -i "s|PLACEHOLDER_RC_HOME_CHAT_ID|${RC_HOME_CHANNEL}|g" "$CONFIG"
msg config_provisioned
fi
fi
+3 -3
View File
@@ -1,3 +1,3 @@
# Hermes Agent — API keys (generated by Rocket.Chat Plugin installer)
# Add your HERMES_API_KEY below — get it from your Hermes provider
HERMES_API_KEY=change-me
# Hermes Agent — API key (generated by Rocket.Chat Plugin installer)
# Replace with your actual key or set OLLAMA_API_KEY env var
OLLAMA_API_KEY=change...pi
+8 -8
View File
@@ -5,15 +5,9 @@
model:
default: deepseek-v4-pro
provider: ollama-cloud
base_url: https://api.openai.com/v1
base_url: https://ollama.com/v1
fallback_providers:
- ollama-cloud
custom_providers:
- name: ollama-cloud
base_url: https://api.openai.com/v1
api_key_env: HERMES_API_KEY
providers: {}
toolsets:
- hermes-cli
@@ -37,3 +31,9 @@ gateway:
platforms:
rocketchat:
enabled: true
extra:
base_url: PLACEHOLDER_RC_URL
home_channel:
platform: rocketchat
chat_id: PLACEHOLDER_RC_HOME
name: PLACEHOLDER_RC_HOME_NAME