Step 1: Installing the Cline Plugin
a. Open VS Code b. Click the Extensions Marketplace icon on the left c. Entercline in the search box
d. Locate the Cline extension and install it
Step 2: Configuring API Settings
ChooseUse your own API Key, and fill in the relevant information according to the following settings:
- API Provider: Select
OpenAI Compatible - Base URL: Enter
https://api.z.ai/api/coding/paas/v4 - API Key: Enter your Z.AI API Key
- Model: Select “Use custom” and enter the GLM model code you want to use (e.g.,
glm-5.2) - Other Configurations:
- Unchecking Support Images
- Adjust Context Window Size based on your model (
glm-5.2is1000000; other models200000) - Adjust
temperatureand other params according to your task requirements.