feat(tool): register optional discord_control tool in whispergate plugin and align defaults

This commit is contained in:
2026-02-25 23:37:15 +00:00
parent 7f1d6bb3f7
commit 0f526346f4
5 changed files with 154 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
{
"plugins": {
"load": {
"paths": ["/path/to/WhisperGate/plugin"]
"paths": ["/path/to/WhisperGate/dist/whispergate"]
},
"entries": {
"whispergate": {
@@ -10,19 +10,45 @@
"enabled": true,
"discordOnly": true,
"bypassUserIds": ["561921120408698910"],
"endSymbols": ["。", "", "", ".", "!", "?"],
"noReplyProvider": "openai",
"noReplyModel": "whispergate-no-reply-v1"
"endSymbols": ["🔚"],
"noReplyProvider": "whisper-gateway",
"noReplyModel": "no-reply",
"enableDiscordControlTool": true,
"discordControlApiBaseUrl": "http://127.0.0.1:8790",
"discordControlApiToken": "<DISCORD_CONTROL_AUTH_TOKEN>",
"discordControlCallerId": "agent-main"
}
}
}
},
"models": {
"providers": {
"openai": {
"apiKey": "<AUTH_TOKEN_OR_PLACEHOLDER>",
"baseURL": "http://127.0.0.1:8787/v1"
"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": 4096,
"maxTokens": 64
}
]
}
}
},
"agents": {
"list": [
{
"id": "main",
"tools": {
"allow": ["whispergate"]
}
}
]
}
}