feat(tool): register optional discord_control tool in whispergate plugin and align defaults
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
目标:补齐 OpenClaw 内置 message 工具当前未覆盖的两个能力:
|
||||
|
||||
> 现在可以通过 WhisperGate 插件内置的可选工具 `discord_control` 直接调用(无需手写 curl)。
|
||||
> 注意:该工具是 optional,需要在 agent tools allowlist 中显式允许(例如允许 `whispergate` 或 `discord_control`)。
|
||||
|
||||
1. 创建指定名单可见的私人频道
|
||||
2. 查看 server 成员列表(分页)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user