Files
openclaw/extensions/tencent/openclaw.plugin.json
Sulaga 2b51c255f8 feat(tencent): add Tencent Hy3 provider (TokenHub and TokenPlan) (#99076)
Summary:
- Merged feat(tencent): add Tencent Hy3 provider (TokenHub and TokenPlan) after ClawSweeper review.

Automerge notes:
- Ran the ClawSweeper repair loop before final review.
- Included post-review commit in the final squash: fix(tencent): preserve TokenHub auth compatibility
- Included post-review commit in the final squash: refactor(tencent): unify TokenPlan env/flag naming with TokenHub
- Included post-review commit in the final squash: docs: refresh Tencent provider docs metadata
- Included post-review commit in the final squash: fix: allow TokenPlan provider config overlays
- Included post-review commit in the final squash: docs: dedupe Tencent provider glossary labels
- Included post-review commit in the final squash: fix(tencent): repair TokenHub model defaults

Validation:
- ClawSweeper review passed for head 30c9fc130f.
- Required merge gates passed before the squash merge.

Prepared head SHA: 30c9fc130f
Review: https://github.com/openclaw/openclaw/pull/99076#issuecomment-4888527271

Co-authored-by: leisang <leisang@tencent.com>
Co-authored-by: Mason Huang <masonxhuang@tencent.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Approved-by: hxy91819
2026-07-06 04:29:48 +00:00

150 lines
4.2 KiB
JSON

{
"id": "tencent",
"activation": {
"onStartup": false
},
"enabledByDefault": true,
"providerCatalogEntry": "./provider-discovery.ts",
"providers": ["tencent-tokenhub", "tencent-tokenplan"],
"modelCatalog": {
"providers": {
"tencent-tokenhub": {
"baseUrl": "https://tokenhub.tencentmaas.com/v1",
"api": "openai-completions",
"models": [
{
"id": "hy3-preview",
"name": "Hy3 preview (TokenHub)",
"reasoning": true,
"input": ["text"],
"contextWindow": 256000,
"maxTokens": 64000,
"cost": {
"input": 0.176,
"output": 0.587,
"cacheRead": 0.059,
"cacheWrite": 0,
"tieredPricing": [
{
"input": 0.176,
"output": 0.587,
"cacheRead": 0.059,
"cacheWrite": 0,
"range": [0, 16000]
},
{
"input": 0.235,
"output": 0.939,
"cacheRead": 0.088,
"cacheWrite": 0,
"range": [16000, 32000]
},
{
"input": 0.293,
"output": 1.173,
"cacheRead": 0.117,
"cacheWrite": 0,
"range": [32000]
}
]
},
"compat": {
"supportsUsageInStreaming": true,
"supportsReasoningEffort": true,
"supportedReasoningEfforts": ["none", "low", "high"]
}
},
{
"id": "hy3",
"name": "Hy3 (TokenHub)",
"reasoning": true,
"input": ["text"],
"contextWindow": 256000,
"maxTokens": 64000,
"compat": {
"supportsUsageInStreaming": true,
"supportsReasoningEffort": true,
"supportedReasoningEfforts": ["none", "high"]
}
}
]
},
"tencent-tokenplan": {
"baseUrl": "https://api.lkeap.cloud.tencent.com/plan/v3",
"api": "openai-completions",
"models": [
{
"id": "hy3",
"name": "Hy3 (TokenPlan)",
"reasoning": true,
"input": ["text"],
"contextWindow": 256000,
"maxTokens": 64000,
"compat": {
"supportsUsageInStreaming": true,
"supportsReasoningEffort": true,
"supportedReasoningEfforts": ["none", "high"]
}
}
]
}
},
"discovery": {
"tencent-tokenhub": "static",
"tencent-tokenplan": "static"
}
},
"setup": {
"providers": [
{
"id": "tencent-tokenhub",
"envVars": ["TOKENHUB_API_KEY"]
},
{
"id": "tencent-tokenplan",
"envVars": ["TOKENPLAN_API_KEY"]
}
]
},
"configContracts": {
"compatibilityMigrationPaths": [
"models.providers.tencent-tokenhub",
"agents.defaults.models.tencent-tokenhub/hy3",
"agents.defaults.models.tencent-tokenhub/hy3-preview"
]
},
"providerAuthChoices": [
{
"provider": "tencent-tokenhub",
"method": "api-key",
"choiceId": "tokenhub-api-key",
"choiceLabel": "Tencent TokenHub",
"groupId": "tencent",
"groupLabel": "Tencent Cloud",
"groupHint": "Tencent TokenHub",
"optionKey": "tokenhubApiKey",
"cliFlag": "--tokenhub-api-key",
"cliOption": "--tokenhub-api-key <key>",
"cliDescription": "Tencent TokenHub API key"
},
{
"provider": "tencent-tokenplan",
"method": "api-key",
"choiceId": "tokenplan-api-key",
"choiceLabel": "Tencent TokenPlan",
"groupId": "tencent",
"groupLabel": "Tencent Cloud",
"groupHint": "Tencent TokenPlan",
"optionKey": "tokenplanApiKey",
"cliFlag": "--tokenplan-api-key",
"cliOption": "--tokenplan-api-key <key>",
"cliDescription": "Tencent TokenPlan API key"
}
],
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {}
}
}