diff --git a/install.sh b/install.sh index 5ea1d91..82ba865 100644 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/templates/.env b/templates/.env index f7b17ef..fc96684 100644 --- a/templates/.env +++ b/templates/.env @@ -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 \ No newline at end of file diff --git a/templates/config.yaml b/templates/config.yaml index caed269..fd14577 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -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