pi-zai-glm
v0.1.1
Published
Extra LLM providers for pi (Z.ai GLM).
Readme
pi-extra-llm
A pi extension that registers extra LLM providers.
Providers
- zai-glm — Z.ai GLM models via the Anthropic-compatible endpoint (
https://api.z.ai/api/anthropic).glm-5.1
Install
pi install npm:pi-extra-llmTo uninstall:
pi remove npm:pi-extra-llmConfiguration
Set your Z.ai API key in the environment:
export ZAI_GLM_API_KEY=sk-...Then reload pi and pick glm-5.1 (provider zai-glm) from the model picker.
Notes
- The base URL points at Z.ai's Anthropic-compatible endpoint, so the extension uses pi's
anthropic-messagesstreaming API — no extra compat flags needed. - Pricing and context window values in
extensions/zai_glm_provider.tsare placeholders; adjust them to match Z.ai's current spec if you want accurate cost tracking.
