← 返回
未分类 中文

Neural Network Ops

Diagnoses and tunes LLM providers (Groq, OpenRouter, Ollama), resolves rate limits/timeouts, and selects stable primary/fallback models. Use when the bot is...
诊断并调优 LLM 提供商(Groq、OpenRouter、Ollama),解决速率限制与超时问题,选择稳定的主备模型。当机器人出现...时使用。
utromaya-code utromaya-code 来源
未分类 clawhub v1.0.0 1 版本 99788.1 Key: 无需
★ 0
Stars
📥 471
下载
💾 1
安装
1
版本
#latest

概述

Neural Network Ops

Purpose

Keep OpenClaw responsive by managing model providers, routing, and fallback behavior.

Fast Triage

Run these checks first:

systemctl is-active openclaw-gateway ollama
journalctl -u openclaw-gateway -n 40 --no-pager
free -h

Focus on these log patterns:

  • rate limit reached
  • Model context window too small
  • Unknown model
  • No endpoints available
  • sendMessage failed
  • embedded run timeout
  • Removed orphaned user message

Routing Policy

Use this default priority for production:

  1. groq/llama-3.3-70b-versatile (fastest cloud path)
  2. openrouter/xiaomi/mimo-v2-pro (high quality backup)
  3. openrouter/meta-llama/llama-3.3-70b-instruct:free
  4. ollama/qwen2.5:7b (last-resort local fallback)

Avoid 35B local models on 30GB RAM CPU servers for real-time Telegram replies.

Stable Model Constraints

For local Ollama fallbacks:

  • contextWindow >= 16000
  • Keep maxTokens moderate (1024-2048) for latency
  • Pre-warm after restart if local fallback is expected

Example local provider entry:

{
  "id": "qwen2.5:7b",
  "name": "Qwen 2.5 7B (local)",
  "contextWindow": 32768,
  "maxTokens": 2048
}

Recovery Playbook

1) Bot silent in Telegram

journalctl -u openclaw-gateway --since '10 min ago' --no-pager

If sendMessage failed, check network/provider errors first, then restart:

systemctl restart openclaw-gateway

2) Repeated orphaned user message

systemctl stop openclaw-gateway
rm -rf /root/.openclaw/.openclaw/agents/main/sessions/*
echo '{}' > /root/.openclaw/.openclaw/agents/main/sessions/sessions.json
chmod 600 /root/.openclaw/.openclaw/agents/main/sessions/sessions.json
systemctl start openclaw-gateway

3) Groq/OpenRouter rate limits

  • Keep Groq as primary, but ensure at least one non-free fallback.
  • For OpenRouter 404 privacy/policy errors, adjust data-policy settings in OpenRouter dashboard.
  • Do not loop retries endlessly; rely on fallback chain.

4) Local fallback too slow

  • Restart Ollama cleanly and warm one small model.
  • Do not keep multiple heavy runners resident.
systemctl restart ollama
curl -s -X POST http://127.0.0.1:11434/api/chat \
  -H 'Content-Type: application/json' \
  -d '{"model":"qwen2.5:7b","messages":[{"role":"user","content":"hi"}],"stream":false}'

Output Format

When reporting health, return:

## Status
- Gateway: <active/inactive>
- Telegram provider: <connected/stalled>
- Primary model: <provider/model>
- Fallback chain: <ordered list>

## Findings
- <most critical issue first>
- <secondary issues>

## Actions Applied
- <exact changes made>

## Next Step
- <single user action to verify>

Guardrails

  • Never expose raw API keys in replies.
  • Never execute irreversible financial actions automatically.
  • Ask for explicit confirmation before account registrations or external postings.
  • Prefer reversible config changes and keep backups before major edits.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 18:55 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,840
ai-agent

Skill Creator

utromaya-code
创建、编辑、改进或审计AgentSkills。用于从零开始创建新技能,或当被要求改进、审查、审计、整理或清理现有技能时使用。
★ 1 📥 2,156
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,854