mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:20:43 +00:00
168 lines
4.8 KiB
JSON
168 lines
4.8 KiB
JSON
{
|
|
"id": "qqbot",
|
|
"activation": {
|
|
"onStartup": false
|
|
},
|
|
"channels": ["qqbot"],
|
|
"contracts": {
|
|
"tools": ["qqbot_channel_api", "qqbot_remind"]
|
|
},
|
|
"channelEnvVars": {
|
|
"qqbot": ["QQBOT_APP_ID", "QQBOT_CLIENT_SECRET"]
|
|
},
|
|
"enabledByDefault": true,
|
|
"skills": ["./skills"],
|
|
"configSchema": {
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"$defs": {
|
|
"audioFormatPolicy": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"sttDirectFormats": {
|
|
"type": "array",
|
|
"items": { "type": "string" }
|
|
},
|
|
"uploadDirectFormats": {
|
|
"type": "array",
|
|
"items": { "type": "string" }
|
|
},
|
|
"transcodeEnabled": { "type": "boolean" }
|
|
}
|
|
},
|
|
"stt": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enabled": { "type": "boolean" },
|
|
"provider": { "type": "string" },
|
|
"baseUrl": { "type": "string" },
|
|
"apiKey": { "type": "string" },
|
|
"model": { "type": "string" }
|
|
}
|
|
},
|
|
"secretRef": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"source": {
|
|
"type": "string",
|
|
"enum": ["env", "file", "exec"]
|
|
},
|
|
"provider": { "type": "string" },
|
|
"id": { "type": "string" }
|
|
},
|
|
"required": ["source", "provider", "id"]
|
|
},
|
|
"secretInput": {
|
|
"anyOf": [{ "type": "string", "minLength": 1 }, { "$ref": "#/$defs/secretRef" }]
|
|
},
|
|
"account": {
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"enabled": { "type": "boolean" },
|
|
"name": { "type": "string" },
|
|
"appId": { "type": "string" },
|
|
"clientSecret": { "$ref": "#/$defs/secretInput" },
|
|
"clientSecretFile": { "type": "string" },
|
|
"allowFrom": {
|
|
"type": "array",
|
|
"items": { "type": "string" }
|
|
},
|
|
"systemPrompt": { "type": "string" },
|
|
"markdownSupport": { "type": "boolean" },
|
|
"voiceDirectUploadFormats": {
|
|
"type": "array",
|
|
"items": { "type": "string" }
|
|
},
|
|
"audioFormatPolicy": { "$ref": "#/$defs/audioFormatPolicy" },
|
|
"urlDirectUpload": { "type": "boolean" },
|
|
"upgradeUrl": { "type": "string" },
|
|
"upgradeMode": {
|
|
"type": "string",
|
|
"enum": ["doc", "hot-reload"]
|
|
},
|
|
"streaming": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"mode": {
|
|
"type": "string",
|
|
"enum": ["off", "partial"],
|
|
"default": "partial"
|
|
},
|
|
"c2cStreamApi": {
|
|
"type": "boolean",
|
|
"description": "Use QQ C2C official stream_messages API (single-message typing-style updates)."
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"properties": {
|
|
"enabled": { "type": "boolean" },
|
|
"name": { "type": "string" },
|
|
"appId": { "type": "string" },
|
|
"clientSecret": { "$ref": "#/$defs/secretInput" },
|
|
"clientSecretFile": { "type": "string" },
|
|
"allowFrom": {
|
|
"type": "array",
|
|
"items": { "type": "string" }
|
|
},
|
|
"systemPrompt": { "type": "string" },
|
|
"markdownSupport": { "type": "boolean" },
|
|
"voiceDirectUploadFormats": {
|
|
"type": "array",
|
|
"items": { "type": "string" }
|
|
},
|
|
"audioFormatPolicy": { "$ref": "#/$defs/audioFormatPolicy" },
|
|
"stt": { "$ref": "#/$defs/stt" },
|
|
"urlDirectUpload": { "type": "boolean" },
|
|
"upgradeUrl": { "type": "string" },
|
|
"upgradeMode": {
|
|
"type": "string",
|
|
"enum": ["doc", "hot-reload"]
|
|
},
|
|
"streaming": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"mode": {
|
|
"type": "string",
|
|
"enum": ["off", "partial"],
|
|
"default": "partial"
|
|
},
|
|
"c2cStreamApi": {
|
|
"type": "boolean",
|
|
"description": "Use QQ C2C official stream_messages API (single-message typing-style updates)."
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"accounts": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/$defs/account"
|
|
}
|
|
},
|
|
"defaultAccount": { "type": "string" }
|
|
}
|
|
}
|
|
}
|