The zhipu module provides a CLI interface for Zhipu AI's GLM (General Language Model) series, supporting powerful text generation and reasoning.
When to Activate
- When the user wants to use Zhipu GLM models for chat or text analysis.
- When managing Zhipu API keys and session defaults.
- When using the
@glmalias for quick access.
Core Principles & Rules
- API Key Management: Use
initor--cfg apikey=<key>for setup. - Model Selection: Specify models using the
--modelflag (e.g.,glm-4). - Alias Access: Prefer the
@glmalias for a faster CLI experience.
Patterns & Examples
Chat with GLM
# Ask a question using the GLM model
@glm "What is the history of the Great Wall?"
Use Specific Version
# Use a specific model version for reasoning
@glm --model glm-4.7 "How many Rs are there in the word strawberry?"
Checklist
- Ensure the Zhipu API key is configured using
x zhipu init. - Confirm the desired GLM model version.