fix(zai): recognize coding quota endpoints without crossing regions - #4174
fix(zai): recognize coding quota endpoints without crossing regions#4174Ingwannu wants to merge 3 commits into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
|
@lidge-jun Small, separate fix for #4154: the documented Z.ai Claude/Codex endpoints can serve requests but are excluded from quota reporting. This PR makes both use the international quota monitor and keeps the existing CN authentication separate. The original reported consumption discrepancy was withdrawn and is not part of the fix. The isolated leaf checks passed; full exact-head CI/typecheck/docs validation is still missing, so this stays Draft. Please review the host/auth mapping and integration gates before merging. |
리뷰 · 우선순위 57 / 80이 PR은 이슈 #4154를 고칩니다. Z.ai Coding Plan을 국제 Anthropic 베이스( 바꾼 내용은 좁습니다. 국제 다만 지금 상태는 merge-ready가 아닙니다. PR이 Draft이고, Cross-platform CI의 라인 문제: tests/providers/provider-quota.test.ts · quota.ts · zaiQuotaMonitorHost - CN 쪽에 draft 체크리스트 - 로컬 검증 박스가 비어 있고, CI도 privacy 때문에 실패 중입니다. review-ready 전에 둘 다 정리해야 합니다. 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
@lidge-jun Addressed the confirmed privacy failure in cf45f6c and brought the branch onto current dev in 3975c04. Username-only and password-only rejection are both covered using URL setters; no scanner exception or test removal. The read-only privacy scan passed locally with isolated homes. I also corrected my stale dev2-go note: current MAINTAINERS.md requires no Go carry. New exact-head CI remains pending, so the PR stays Draft. |
|
@lidge-jun Current-head Cross-platform CI 34441296964 is now successful at 3975c04. I checked the macOS log: all 15 new Z.ai cases passed, including username-only/password-only refusal. Linux/macOS shards and typecheck/privacy gates passed. Windows keyring and global-install smoke passed; the full Windows shard matrix was skipped, not executed. The PR stays Draft for independent review and the documentation-site build. The original fixture privacy regression is resolved; no merge or local runtime change was made. |
Summary
Closes #4154.
/api/anthropic) and Responses base (/api/v1) for Coding Plan quota reads.Official endpoint references: https://docs.z.ai/devpack/tool/claude and https://docs.z.ai/devpack/tool/codex
Verification
Current head:
3975c04971c506ae0374e77c20476b9877e06755; integration base:f94dd88f12a1a9aeb355aa9b2d7166ef5b002ac9.The branch incorporates current dev without rewriting published branch history.
Destination/auth review: international bases use api.z.ai plus Bearer; existing CN bases use open.bigmodel.cn plus raw key. Unsupported bases cause no probe. CN Anthropic support is deliberately not added.
The reporter withdrew the original 5x consumption claim; this fix does not repeat it.
Correction to my original description: current MAINTAINERS.md makes dev the only integration branch. There is no dev2-go carry obligation or needs-go-port follow-up.
Checklist
Review readiness