Root cause: installer called 'openclaw gateway restart' (async via systemd) then immediately validated model visibility — race condition caused validation to fail and rollback the correct config. Fix: remove restart + validation from script entirely. Script only writes config. User restarts gateway manually after install completes. Also fix CONFIG.example.json: contextWindow 4096->200000, maxTokens 64->8192 (OpenClaw requires minimum 16000 contextWindow).
61 lines
1.6 KiB
JSON
61 lines
1.6 KiB
JSON
{
|
|
"plugins": {
|
|
"load": {
|
|
"paths": ["/path/to/WhisperGate/dist/whispergate"]
|
|
},
|
|
"entries": {
|
|
"whispergate": {
|
|
"enabled": true,
|
|
"config": {
|
|
"enabled": true,
|
|
"discordOnly": true,
|
|
"listMode": "human-list",
|
|
"humanList": ["561921120408698910"],
|
|
"agentList": [],
|
|
"endSymbols": ["🔚"],
|
|
"channelPoliciesFile": "~/.openclaw/whispergate-channel-policies.json",
|
|
"noReplyProvider": "whisper-gateway",
|
|
"noReplyModel": "no-reply",
|
|
"enableDiscordControlTool": true,
|
|
"enableWhispergatePolicyTool": true,
|
|
"enableDebugLogs": false,
|
|
"debugLogChannelIds": [],
|
|
"discordControlApiBaseUrl": "http://127.0.0.1:8790",
|
|
"discordControlApiToken": "<DISCORD_CONTROL_AUTH_TOKEN>",
|
|
"discordControlCallerId": "agent-main"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"models": {
|
|
"providers": {
|
|
"whisper-gateway": {
|
|
"apiKey": "<NO_REPLY_API_TOKEN_OR_PLACEHOLDER>",
|
|
"baseUrl": "http://127.0.0.1:8787/v1",
|
|
"api": "openai-completions",
|
|
"models": [
|
|
{
|
|
"id": "no-reply",
|
|
"name": "No Reply",
|
|
"reasoning": false,
|
|
"input": ["text"],
|
|
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
"contextWindow": 200000,
|
|
"maxTokens": 8192
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"agents": {
|
|
"list": [
|
|
{
|
|
"id": "main",
|
|
"tools": {
|
|
"allow": ["whispergate"]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|