OpenParable
Skip to content
← Back to skills

Preset Skill Zhipu

Agent Building
preset-skill-zhipu

Preset Skill Zhipu is an Agent Skill for agent building published in the Lingtai-AI/lingtai repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Nested lingtai-preset-skill reference for the `zhipu` built-in preset. Read when verifying shipped identity, provider sources, and compatibility facts for the `zhipu` template preset.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Lingtai-AI/lingtai/blob/HEAD/tui/internal/preset/skills/lingtai-preset-skill/reference/zhipu/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/preset-skill-zhipu, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

zhipu — built-in preset manual

Thin pointer. Code is truth for the wiring; provider docs are truth for volatile catalogs (models, prices, quotas).

When to read

  • Editing or health-checking the zhipu built-in template preset.
  • Confirming region-bound endpoint behavior or env-var slot naming.
  • Needing authoritative Zhipu/GLM model/pricing/API/auth links.

Shipped identity (verify in TUI source)

From zhipuPreset() (tui/internal/preset/preset.go:961).

FieldValueSource
Preset namezhipupreset.go:961
llm.providerzhipupreset.go:961
llm.modelGLM-5.2preset.go:961
llm.api_compatopenaiOpenAI Chat Completions protocol
llm.api_key_envZHIPU_API_KEYpreset.go:961
llm.base_urlProviderRegionURLs["zhipu"][0].URL (CN default)preset.go:478
Capabilitiesweb_search (provider zhipu), vision (provider zhipu), skills defaultpreset.go:961

Regional endpoints

ProviderRegionURLs["zhipu"] (preset.go:478). Keys are region-bound — not interchangeable.

RegionHostbase_url
CNopen.bigmodel.cnhttps://open.bigmodel.cn/api/coding/paas/v4
INTLapi.z.aihttps://api.z.ai/api/coding/paas/v4

Region detection (regionSuffix, preset.go:1465): base_url containing api.z.ai -> INTL, otherwise -> CN. Env-var slots: ZHIPU_CN_<N>_API_KEY / ZHIPU_INTL_<N>_API_KEY via AutoEnvVarName (preset.go:1421).

Official provider sources

This preset uses the OpenAI path (api_compat: openai) at /api/coding/paas/v4.

Related capabilities

The same Zhipu coding-plan key unlocks MCP servers (vision, web search, web reader, zread). That is a separate concern — see swiss-knife/reference/zhipu-coding-plan/SKILL.md.

Maintenance checklist

  • Provider-owned (refresh): model names, pricing, plan tiers, quotas, doc paths.
  • LingTai-owned (verify in source): preset wiring, two regional base_urls, api_compat, ZHIPU_*_<N>_API_KEY env-var rules.