Files
openclaw/extensions/zai/openclaw.plugin.json
Peter Steinberger 91b5b43d78 feat(models): curate default model picker to current-generation catalogs (#113594)
* feat(models): curate default picker visibility

* chore(models): curate provider catalogs

* test(openai): generalize static-catalog transport guard after row curation (#91710)

* fix(models): propagate catalog lifecycle metadata

* test(models): keep picker suite within line budget
2026-07-25 03:22:42 -07:00

190 lines
4.5 KiB
JSON

{
"id": "zai",
"activation": {
"onStartup": false
},
"enabledByDefault": true,
"providers": ["zai"],
"providerEndpoints": [
{
"endpointClass": "zai-native",
"hosts": ["api.z.ai"]
}
],
"providerRequest": {
"providers": {
"zai": {
"family": "zai"
}
}
},
"setup": {
"providers": [
{
"id": "zai",
"authMethods": ["api-key"],
"envVars": ["ZAI_API_KEY", "Z_AI_API_KEY"]
}
]
},
"modelCatalog": {
"providers": {
"zai": {
"baseUrl": "https://api.z.ai/api/paas/v4",
"api": "openai-completions",
"models": [
{
"id": "glm-5.2",
"name": "GLM-5.2",
"reasoning": true,
"input": ["text"],
"contextWindow": 1000000,
"maxTokens": 131072,
"cost": {
"input": 1.4,
"output": 4.4,
"cacheRead": 0.26,
"cacheWrite": 0
}
},
{
"id": "glm-5.1",
"name": "GLM-5.1",
"status": "deprecated",
"replacedBy": "glm-5.2",
"reasoning": true,
"input": ["text"],
"contextWindow": 202800,
"maxTokens": 131100,
"cost": {
"input": 1.4,
"output": 4.4,
"cacheRead": 0.26,
"cacheWrite": 0
}
}
]
}
},
"aliases": {
"z.ai": {
"provider": "zai"
},
"z-ai": {
"provider": "zai"
}
},
"discovery": {
"zai": "refreshable"
}
},
"modelPricing": {
"providers": {
"zai": {
"openRouter": {
"provider": "z-ai"
},
"liteLLM": {
"provider": "zai"
}
}
}
},
"providerAuthChoices": [
{
"provider": "zai",
"method": "api-key",
"choiceId": "zai-api-key",
"appGuidedSecret": true,
"choiceLabel": "Z.AI API key",
"groupId": "zai",
"groupLabel": "Z.AI",
"groupHint": "GLM Coding Plan / Global / CN",
"optionKey": "zaiApiKey",
"cliFlag": "--zai-api-key",
"cliOption": "--zai-api-key <key>",
"cliDescription": "Z.AI API key"
},
{
"provider": "zai",
"method": "coding-global",
"choiceId": "zai-coding-global",
"appGuidedSecret": true,
"choiceLabel": "Coding-Plan-Global",
"choiceHint": "GLM Coding Plan Global (api.z.ai)",
"groupId": "zai",
"groupLabel": "Z.AI",
"groupHint": "GLM Coding Plan / Global / CN",
"optionKey": "zaiApiKey",
"cliFlag": "--zai-api-key",
"cliOption": "--zai-api-key <key>",
"cliDescription": "Z.AI API key"
},
{
"provider": "zai",
"method": "coding-cn",
"choiceId": "zai-coding-cn",
"appGuidedSecret": true,
"choiceLabel": "Coding-Plan-CN",
"choiceHint": "GLM Coding Plan CN (open.bigmodel.cn)",
"groupId": "zai",
"groupLabel": "Z.AI",
"groupHint": "GLM Coding Plan / Global / CN",
"optionKey": "zaiApiKey",
"cliFlag": "--zai-api-key",
"cliOption": "--zai-api-key <key>",
"cliDescription": "Z.AI API key"
},
{
"provider": "zai",
"method": "global",
"choiceId": "zai-global",
"appGuidedSecret": true,
"choiceLabel": "Global",
"choiceHint": "Z.AI Global (api.z.ai)",
"groupId": "zai",
"groupLabel": "Z.AI",
"groupHint": "GLM Coding Plan / Global / CN",
"optionKey": "zaiApiKey",
"cliFlag": "--zai-api-key",
"cliOption": "--zai-api-key <key>",
"cliDescription": "Z.AI API key"
},
{
"provider": "zai",
"method": "cn",
"choiceId": "zai-cn",
"appGuidedSecret": true,
"choiceLabel": "CN",
"choiceHint": "Z.AI CN (open.bigmodel.cn)",
"groupId": "zai",
"groupLabel": "Z.AI",
"groupHint": "GLM Coding Plan / Global / CN",
"optionKey": "zaiApiKey",
"cliFlag": "--zai-api-key",
"cliOption": "--zai-api-key <key>",
"cliDescription": "Z.AI API key"
}
],
"contracts": {
"mediaUnderstandingProviders": ["zai"],
"usageProviders": ["zai"]
},
"mediaUnderstandingProviderMetadata": {
"zai": {
"capabilities": ["image"],
"defaultModels": {
"image": "glm-4.6v"
},
"autoPriority": {
"image": 60
}
}
},
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {}
}
}