added log for sending text and aria-setup.sh
This commit is contained in:
+50
-8
@@ -18,22 +18,64 @@ echo " aria-core laeuft."
|
||||
|
||||
# Permissions fixen — Docker-Volume gehoert root, OpenClaw laeuft als node
|
||||
echo ""
|
||||
echo "[2/4] Fixe Permissions auf /home/node/.openclaw..."
|
||||
echo "[2/3] Fixe Permissions auf /home/node/.openclaw..."
|
||||
docker exec -u root aria-core chown -R node:node /home/node/.openclaw
|
||||
echo " Permissions OK."
|
||||
|
||||
# Model auf openai-Proxy umstellen
|
||||
# OpenClaw Config schreiben — Custom Provider fuer claude-max-api-proxy
|
||||
echo ""
|
||||
echo "[3/4] Setze Model auf openai/claude-sonnet-4-6 (via Proxy)..."
|
||||
docker exec aria-core openclaw models set openai/claude-sonnet-4-6
|
||||
echo " Model gesetzt."
|
||||
echo "[3/3] Schreibe openclaw.json (Proxy-Provider + Model)..."
|
||||
docker exec aria-core sh -c 'cat > /home/node/.openclaw/openclaw.json << '"'"'INNEREOF'"'"'
|
||||
{
|
||||
"meta": {
|
||||
"lastTouchedVersion": "2026.3.8"
|
||||
},
|
||||
"agents": {
|
||||
"defaults": {
|
||||
"model": {
|
||||
"primary": "proxy/claude-sonnet-4"
|
||||
},
|
||||
"compaction": {
|
||||
"mode": "safeguard"
|
||||
},
|
||||
"maxConcurrent": 4,
|
||||
"subagents": {
|
||||
"maxConcurrent": 8
|
||||
}
|
||||
}
|
||||
},
|
||||
"models": {
|
||||
"providers": {
|
||||
"proxy": {
|
||||
"api": "openai-completions",
|
||||
"baseUrl": "http://proxy:3456/v1",
|
||||
"apiKey": "not-needed",
|
||||
"models": [
|
||||
{ "id": "claude-sonnet-4", "name": "claude-sonnet-4" },
|
||||
{ "id": "claude-opus-4", "name": "claude-opus-4" }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"messages": {
|
||||
"ackReactionScope": "group-mentions"
|
||||
},
|
||||
"commands": {
|
||||
"native": "auto",
|
||||
"nativeSkills": "auto",
|
||||
"restart": true,
|
||||
"ownerDisplay": "raw"
|
||||
}
|
||||
}
|
||||
INNEREOF'
|
||||
echo " Config geschrieben."
|
||||
|
||||
# Gateway neustarten damit die Aenderung greift
|
||||
# Neustart damit Gateway die Config laedt
|
||||
echo ""
|
||||
echo "[4/4] Starte aria-core neu damit Gateway das neue Model laedt..."
|
||||
echo "Starte aria-core neu..."
|
||||
docker restart aria-core
|
||||
|
||||
echo ""
|
||||
echo "=== Setup fertig ==="
|
||||
echo "Teste mit: docker logs aria-core --tail 20"
|
||||
echo "Erwartete Zeile: 'agent model: openai/claude-sonnet-4-6'"
|
||||
echo "Erwartete Zeile: 'agent model: proxy/claude-sonnet-4'"
|
||||
|
||||
Reference in New Issue
Block a user