fix: normalize z.ai provider ids in auth profiles

This commit is contained in:
mneves75
2026-01-06 11:49:37 -03:00
committed by Peter Steinberger
parent 13c1ce1f05
commit 3550dc294d
7 changed files with 232 additions and 8 deletions

View File

@@ -1004,6 +1004,7 @@ in your environment and reference the model by provider/model.
Notes:
- `z.ai/*` and `z-ai/*` are accepted aliases and normalize to `zai/*`.
- If `ZAI_API_KEY` is missing, requests to `zai/*` will fail with an auth error at runtime.
- Example error: `No API key found for provider "zai".`
- Z.AIs general API endpoint is `https://api.z.ai/api/paas/v4`. The GLM Coding
Plan uses the dedicated Coding endpoint `https://api.z.ai/api/coding/paas/v4`.
The built-in `zai` provider uses the Coding endpoint. If you need the general