改为自己的mt5api
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=GENESIS Ares Strategy B — Telegram Command Bot
|
||||
Documentation=https://github.com/your-repo/genesis
|
||||
After=network-online.target hermes-gateway.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/root/GENESIS
|
||||
EnvironmentFile=/root/GENESIS/hermes_openrouter_env
|
||||
ExecStart=/usr/bin/python3 /root/GENESIS/ares_telegram_bot.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
# Ares bot logs
|
||||
LogsDirectory=ares
|
||||
LogsDirectoryMode=0755
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Hermes Agent Gateway (Telegram)
|
||||
After=network.target mt5-bridge.service
|
||||
Wants=mt5-bridge.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/hermes-agent
|
||||
TimeoutStopSec=210
|
||||
Environment="HOME=/root"
|
||||
Environment="PATH=/root/.local/bin:/opt/hermes-agent/.venv-hermes/bin:/usr/local/bin:/usr/bin:/bin"
|
||||
ExecStart=/opt/hermes-agent/.venv-hermes/bin/python3 /opt/hermes-agent/hermes gateway run --accept-hooks
|
||||
Restart=always
|
||||
RestartSec=15
|
||||
StandardOutput=append:/var/log/hermes/hermes-gateway.log
|
||||
StandardError=append:/var/log/hermes/hermes-gateway.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,14 @@
|
||||
model:
|
||||
default: gpt-4o-mini
|
||||
provider: custom:openai-compatible
|
||||
custom_providers:
|
||||
- name: openai-compatible
|
||||
base_url: ${OPENAI_BASE_URL:-https://api.openai.com/v1}
|
||||
memory:
|
||||
enabled: true
|
||||
path: /root/.hermes/memory
|
||||
agent:
|
||||
max_iterations: 50
|
||||
shell: bash
|
||||
restart_drain_timeout: 180
|
||||
version: 23
|
||||
Reference in New Issue
Block a user