fix(coding-agent): clarify ZAI Coding Plan label

closes #5965
This commit is contained in:
Armin Ronacher
2026-06-22 13:03:50 +02:00
parent 717a8f958a
commit 4f71b2d3b7
7 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ Unified LLM API with automatic model discovery, provider configuration, token an
- **xAI** - **xAI**
- **OpenRouter** - **OpenRouter**
- **Vercel AI Gateway** - **Vercel AI Gateway**
- **ZAI** (with separate Coding Plan China provider) - **ZAI Coding Plan (Global)** (with separate China provider)
- **MiniMax** - **MiniMax**
- **Together AI** - **Together AI**
- **GitHub Copilot** (requires OAuth, see below) - **GitHub Copilot** (requires OAuth, see below)
@@ -1123,7 +1123,7 @@ In Node.js environments, you can set environment variables to avoid passing API
| Together AI | `TOGETHER_API_KEY` | | Together AI | `TOGETHER_API_KEY` |
| OpenRouter | `OPENROUTER_API_KEY` | | OpenRouter | `OPENROUTER_API_KEY` |
| Vercel AI Gateway | `AI_GATEWAY_API_KEY` | | Vercel AI Gateway | `AI_GATEWAY_API_KEY` |
| zAI | `ZAI_API_KEY` | | ZAI Coding Plan (Global) | `ZAI_API_KEY` |
| ZAI Coding Plan (China) | `ZAI_CODING_CN_API_KEY` | | ZAI Coding Plan (China) | `ZAI_CODING_CN_API_KEY` |
| MiniMax | `MINIMAX_API_KEY` | | MiniMax | `MINIMAX_API_KEY` |
| OpenCode Zen / OpenCode Go | `OPENCODE_API_KEY` | | OpenCode Zen / OpenCode Go | `OPENCODE_API_KEY` |
+4
View File
@@ -2,6 +2,10 @@
## [Unreleased] ## [Unreleased]
### Changed
- Renamed the displayed `zai` provider label to ZAI Coding Plan (Global) for clarity ([#5965](https://github.com/earendil-works/pi/issues/5965)).
## [0.79.10] - 2026-06-22 ## [0.79.10] - 2026-06-22
### New Features ### New Features
+1 -1
View File
@@ -121,7 +121,7 @@ For each built-in provider, pi maintains a list of tool-capable models, updated
- xAI - xAI
- OpenRouter - OpenRouter
- Vercel AI Gateway - Vercel AI Gateway
- ZAI - ZAI Coding Plan (Global)
- ZAI Coding Plan (China) - ZAI Coding Plan (China)
- OpenCode Zen - OpenCode Zen
- OpenCode Go - OpenCode Go
+1 -1
View File
@@ -63,7 +63,7 @@ pi
| xAI | `XAI_API_KEY` | `xai` | | xAI | `XAI_API_KEY` | `xai` |
| OpenRouter | `OPENROUTER_API_KEY` | `openrouter` | | OpenRouter | `OPENROUTER_API_KEY` | `openrouter` |
| Vercel AI Gateway | `AI_GATEWAY_API_KEY` | `vercel-ai-gateway` | | Vercel AI Gateway | `AI_GATEWAY_API_KEY` | `vercel-ai-gateway` |
| ZAI | `ZAI_API_KEY` | `zai` | | ZAI Coding Plan (Global) | `ZAI_API_KEY` | `zai` |
| ZAI Coding Plan (China) | `ZAI_CODING_CN_API_KEY` | `zai-coding-cn` | | ZAI Coding Plan (China) | `ZAI_CODING_CN_API_KEY` | `zai-coding-cn` |
| OpenCode Zen | `OPENCODE_API_KEY` | `opencode` | | OpenCode Zen | `OPENCODE_API_KEY` | `opencode` |
| OpenCode Go | `OPENCODE_API_KEY` | `opencode-go` | | OpenCode Go | `OPENCODE_API_KEY` | `opencode-go` |
+1 -1
View File
@@ -352,7 +352,7 @@ ${chalk.bold("Environment Variables:")}
TOGETHER_API_KEY - Together AI API key TOGETHER_API_KEY - Together AI API key
OPENROUTER_API_KEY - OpenRouter API key OPENROUTER_API_KEY - OpenRouter API key
AI_GATEWAY_API_KEY - Vercel AI Gateway API key AI_GATEWAY_API_KEY - Vercel AI Gateway API key
ZAI_API_KEY - ZAI API key ZAI_API_KEY - ZAI Coding Plan API key (Global)
ZAI_CODING_CN_API_KEY - ZAI Coding Plan API key (China) ZAI_CODING_CN_API_KEY - ZAI Coding Plan API key (China)
MISTRAL_API_KEY - Mistral API key MISTRAL_API_KEY - Mistral API key
MINIMAX_API_KEY - MiniMax API key MINIMAX_API_KEY - MiniMax API key
@@ -26,7 +26,7 @@ export const BUILT_IN_PROVIDER_DISPLAY_NAMES: Record<string, string> = {
together: "Together AI", together: "Together AI",
"vercel-ai-gateway": "Vercel AI Gateway", "vercel-ai-gateway": "Vercel AI Gateway",
xai: "xAI", xai: "xAI",
zai: "ZAI", zai: "ZAI Coding Plan (Global)",
"zai-coding-cn": "ZAI Coding Plan (China)", "zai-coding-cn": "ZAI Coding Plan (China)",
xiaomi: "Xiaomi MiMo", xiaomi: "Xiaomi MiMo",
"xiaomi-token-plan-cn": "Xiaomi MiMo Token Plan (China)", "xiaomi-token-plan-cn": "Xiaomi MiMo Token Plan (China)",
@@ -885,6 +885,7 @@ describe("ModelRegistry", () => {
expect(registry.getProviderDisplayName("openai")).toBe("OpenAI"); expect(registry.getProviderDisplayName("openai")).toBe("OpenAI");
expect(registry.getProviderDisplayName("github-copilot")).toBe("GitHub Copilot"); expect(registry.getProviderDisplayName("github-copilot")).toBe("GitHub Copilot");
expect(registry.getProviderDisplayName("zai")).toBe("ZAI Coding Plan (Global)");
expect(registry.getProviderDisplayName("unknown-provider")).toBe("unknown-provider"); expect(registry.getProviderDisplayName("unknown-provider")).toBe("unknown-provider");
registry.registerProvider("named-provider", { registry.registerProvider("named-provider", {