Repository navigation
Description
Client or integration
OpenCodex dashboard
Area
Provider adapter
Summary
After #4307 moved the zai registry row to the Responses protocol, an existing install still shows the retired Chat endpoint in the dashboard and in config.json:
- Adapter:
openai-chat - Base URL:
https://api.z.ai/api/coding/paas/v4
The actual requests are already fine. routedProviderConfig() canonicalizes the row on every request because the zai registry entry owns a fixed destination, so the live wire is openai-responses against https://api.z.ai with /api/v1/responses. Only the stored row was never updated.
That mismatch has three visible costs: the provider page reports a protocol the proxy does not use, ocx doctor and any direct config reader inherit the same wrong value, and each boot logs a warning about a base URL the user never chose.
Expected: the saved row is rewritten once to the destination the router already applies, so stored state and live routing agree.
Reproduction
- Start from a config where the
zaiprovider was added before the Responses move, so it holdsadapter: "openai-chat"andbaseUrl: "https://api.z.ai/api/coding/paas/v4". - Update to a build that contains feat(zai): default to the Responses protocol and keep Chat as a per-model opt-in #4307.
ocx start --port 10100, open the dashboard at/#providers, select Zai and open 설정 / Settings.- The adapter field still reads
openai-chatand the base URL still reads the/api/coding/paas/v4endpoint. - Meanwhile the proxy logs
configured baseUrl https://api.z.ai/… is ignored because this provider's endpoint is fixed at https://api.z.ai/, and requests leave on/api/v1/responses.
Version
2.52.0
Operating system
macOS 15.5
Provider and model
zai / glm-5.3
Logs or error output
⚠️ config.json provider "zai": configured baseUrl https://api.z.ai/… is ignored because this provider's endpoint is fixed at https://api.z.ai/. A URL saved for a different account or region is a common cause of 401s here — drop it, or use the provider whose endpoint matches.Redacted configuration
{
"providers": {
"zai": {
"adapter": "openai-chat",
"baseUrl": "https://api.z.ai/api/coding/paas/v4",
"authMode": "key",
"defaultModel": "glm-5.3"
}
}
}Checks
- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
Activity
lidge-jun commentedon Sep 12, 2026
Landed on dev in #4321 (merge 8fc6327). Startup now rewrites the saved zai row to the Responses destination the router already applies and records zaiResponsesDefaultVersion, so the dashboard, ocx doctor and config.json stop showing the retired Chat endpoint. Existing installs pick this up on the next proxy start.