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:
@@ -436,6 +436,12 @@ if [ ! -f "$CONFIG" ]; then
|
|||||||
mkdir -p "$HERMES_HOME"
|
mkdir -p "$HERMES_HOME"
|
||||||
if [ -f "$SCRIPT_DIR/templates/config.yaml" ]; then
|
if [ -f "$SCRIPT_DIR/templates/config.yaml" ]; then
|
||||||
cp "$SCRIPT_DIR/templates/config.yaml" "$CONFIG"
|
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
|
msg config_provisioned
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
+3
-3
@@ -1,3 +1,3 @@
|
|||||||
# Hermes Agent — API keys (generated by Rocket.Chat Plugin installer)
|
# Hermes Agent — API key (generated by Rocket.Chat Plugin installer)
|
||||||
# Add your HERMES_API_KEY below — get it from your Hermes provider
|
# Replace with your actual key or set OLLAMA_API_KEY env var
|
||||||
HERMES_API_KEY=change-me
|
OLLAMA_API_KEY=change...pi
|
||||||
@@ -5,15 +5,9 @@
|
|||||||
model:
|
model:
|
||||||
default: deepseek-v4-pro
|
default: deepseek-v4-pro
|
||||||
provider: ollama-cloud
|
provider: ollama-cloud
|
||||||
base_url: https://api.openai.com/v1
|
base_url: https://ollama.com/v1
|
||||||
|
|
||||||
fallback_providers:
|
providers: {}
|
||||||
- ollama-cloud
|
|
||||||
|
|
||||||
custom_providers:
|
|
||||||
- name: ollama-cloud
|
|
||||||
base_url: https://api.openai.com/v1
|
|
||||||
api_key_env: HERMES_API_KEY
|
|
||||||
|
|
||||||
toolsets:
|
toolsets:
|
||||||
- hermes-cli
|
- hermes-cli
|
||||||
@@ -37,3 +31,9 @@ gateway:
|
|||||||
platforms:
|
platforms:
|
||||||
rocketchat:
|
rocketchat:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
extra:
|
||||||
|
base_url: PLACEHOLDER_RC_URL
|
||||||
|
home_channel:
|
||||||
|
platform: rocketchat
|
||||||
|
chat_id: PLACEHOLDER_RC_HOME
|
||||||
|
name: PLACEHOLDER_RC_HOME_NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user