fix(coding-agent): clarify ZAI Coding Plan label
Some checks are pending
CI / build-check-test (push) Waiting to run

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

View file

@ -68,7 +68,7 @@ Unified LLM API with automatic model discovery, provider configuration, token an
- **xAI**
- **OpenRouter**
- **Vercel AI Gateway**
- **ZAI** (with separate Coding Plan China provider)
- **ZAI Coding Plan (Global)** (with separate China provider)
- **MiniMax**
- **Together AI**
- **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` |
| OpenRouter | `OPENROUTER_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` |
| MiniMax | `MINIMAX_API_KEY` |
| OpenCode Zen / OpenCode Go | `OPENCODE_API_KEY` |

View file

@ -2,6 +2,10 @@
## [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
### New Features

View file

@ -121,7 +121,7 @@ For each built-in provider, pi maintains a list of tool-capable models, updated
- xAI
- OpenRouter
- Vercel AI Gateway
- ZAI
- ZAI Coding Plan (Global)
- ZAI Coding Plan (China)
- OpenCode Zen
- OpenCode Go

View file

@ -63,7 +63,7 @@ pi
| xAI | `XAI_API_KEY` | `xai` |
| OpenRouter | `OPENROUTER_API_KEY` | `openrouter` |
| 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` |
| OpenCode Zen | `OPENCODE_API_KEY` | `opencode` |
| OpenCode Go | `OPENCODE_API_KEY` | `opencode-go` |

View file

@ -352,7 +352,7 @@ ${chalk.bold("Environment Variables:")}
TOGETHER_API_KEY - Together AI API key
OPENROUTER_API_KEY - OpenRouter 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)
MISTRAL_API_KEY - Mistral API key
MINIMAX_API_KEY - MiniMax API key

View file

@ -26,7 +26,7 @@ export const BUILT_IN_PROVIDER_DISPLAY_NAMES: Record<string, string> = {
together: "Together AI",
"vercel-ai-gateway": "Vercel AI Gateway",
xai: "xAI",
zai: "ZAI",
zai: "ZAI Coding Plan (Global)",
"zai-coding-cn": "ZAI Coding Plan (China)",
xiaomi: "Xiaomi MiMo",
"xiaomi-token-plan-cn": "Xiaomi MiMo Token Plan (China)",

View file

@ -885,6 +885,7 @@ describe("ModelRegistry", () => {
expect(registry.getProviderDisplayName("openai")).toBe("OpenAI");
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");
registry.registerProvider("named-provider", {