Skip to content

[docs] AI Coding — PAYG vs Token Plan: per-service-type tabs for every copy-paste example — VI + EN - #40

Merged
greennode-vdb merged 2 commits into
mainfrom
huyenttn3
Aug 14, 2026
Merged

[docs] AI Coding — PAYG vs Token Plan: per-service-type tabs for every copy-paste example — VI + EN#40
greennode-vdb merged 2 commits into
mainfrom
huyenttn3

Conversation

@greennode-vdb

Copy link
Copy Markdown
Contributor

What

AI Coding docs now handle two service types (PAYG and Token Plan) in every copy-paste example, VI + EN.

Why

Every config example hardcoded the PAYG endpoint (maas-llm-aiplatform-hcm.api.vngcloud.vn), with the Token Plan host (tokenplan.api.greennode.ai) mentioned only in a hint block below the code the reader had already copied. A Token Plan user following any tool page got 401/404 with nothing in the troubleshooting tables explaining why.

Changes

  • Service-type table + 2x2 Base URL matrix (PAYG / Token Plan x Anthropic-no-/v1 / OpenAI-with-/v1) on the AI Coding hub and the prerequisites page
  • Every config block wrapped in {% tabs %} PAYG | Token Plan so examples are copy-ready per service type. Claude Code uses 4 flat tabs (service type x OS) since GitBook nested tabs are unreliable
  • Key type identified by provenance (API Keys page vs a plan Subscription keys tab) — the two key types are visually indistinguishable, so prefix-based guidance would be wrong
  • New failure mode documented on every page: valid key + wrong host = 401; added 403 (model outside plan) and 402 (plan expired) rows
  • curl verification step so the URL+key pair is proven before any tool config
  • Surfaced that Model ID differs between service types (z-ai/glm-5.2 vs the plan Model code glm-5.2)

Files (18, all pre-existing — no SUMMARY.md changes needed)

VIai-stack/ai-coding/: README, bat-dau, ket-noi-openai-compatible-voi-maas, dong-lenh/{README,claude-code,codex-cli,opencode}, co-giao-dien/{README,codex-desktop}
ENai-stack/ai-coding/: README, getting-started, connect-openai-compatible-to-maas, cli-tools/{README,claude-code,codex-cli,opencode}, gui-tools/{README,codex-desktop}

Verified

GitBook tag balance (tabs/tab/hint), code-fence parity, all relative links and image paths resolve, VI/EN heading counts and tab counts match on all 7 page pairs.

Note for review

The Token Plan Model code examples (glm-5.2) come from the existing Token Plan A-Z guide. The docs say Model IDs can differ between service types rather than asserting a naming rule — worth confirming against the actual portal behaviour.

🤖 Generated with Claude Code

Hana-Hasa and others added 2 commits August 14, 2026 16:13
…y copy-paste example — VI + EN

Every config example hardcoded the PAYG endpoint, with the Token Plan URL
mentioned only in a hint below the code block the reader had already copied.
Token Plan users got 401/404 with no path to the answer.

- Add a service-type table + 2x2 Base URL matrix (PAYG/Token Plan x Anthropic//v1)
  to the AI Coding hub and the prerequisites page
- Wrap every config block in {% tabs %} PAYG | Token Plan so examples are
  copy-ready per service type (Claude Code: 4 tabs, service type x OS)
- Identify key type by provenance (API Keys page vs plan Subscription keys tab),
  since the two key types are visually indistinguishable
- Document the new failure mode everywhere: valid key + wrong host = 401;
  add 403 (model outside plan) and 402 (plan expired) rows
- Add a curl step to verify the URL+key pair before configuring any tool
- Surface that Model ID differs between service types (z-ai/glm-5.2 vs Model code)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@greennode-vdb
greennode-vdb merged commit 4605fe4 into main Aug 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants