Skip to content

Commit d355e10

Browse files
committed
release: v2.4.3 - glm/glm5/glmapi endpoints clarified
1 parent 68eaaaa commit d355e10

File tree

8 files changed

+45
-19
lines changed

8 files changed

+45
-19
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 2.4.3
4+
- **FIX**: glmapi now uses correct endpoint (`api/paas/v4`) for API Credits
5+
- **NEW**: Added `glm5` alias for GLM-5 via Coding Plan
6+
- **UPDATE**: `glm` now uses GLM-4.7 (default for Pro) instead of GLM-5
7+
- **DOCS**: Updated all documentation to reflect correct endpoints:
8+
- `glm` → GLM-4.7, Coding Plan (Pro)
9+
- `glm5` → GLM-5, Coding Plan (Max)
10+
- `glmapi` → GLM-5, API Credits (pay-per-use)
11+
312
## 2.4.0
413
- **NEW**: MiniMax support with `minimax` / `mm` aliases (M2.5 model)
514
- **NEW**: GLM-5 support with two endpoints:

NPM_README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55

66
Multi-provider configuration for Claude Code Router with intelligent intent-based routing.
77

8-
## v2.4.2 - GitHub Packages
8+
## v2.4.3 - GitHub Packages
99

10-
Now supports **GLM-5** with two endpoint options:
10+
Now supports **GLM-5** with three endpoint options:
1111

12-
| Alias | Endpoint | Use Case |
13-
|-------|----------|----------|
14-
| `glm` | z.ai Coding Plan | Subscription-based coding |
15-
| `glmapi` | z.ai API Credits | Pay-per-use with credits |
12+
| Alias | Endpoint | Model | Use Case |
13+
|-------|----------|-------|----------|
14+
| `glm` | z.ai Coding Plan | GLM-4.7 | Pro subscription coding |
15+
| `glm5` | z.ai Coding Plan | GLM-5 | Max users, complex tasks |
16+
| `glmapi` | z.ai API Credits | GLM-5 | Pay-per-use (30$ bakiye) |
1617

1718
## Quick Install
1819

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Claude Code Router Config - Advanced Multi-Provider Setup
22

3-
🚀 **v2.4.2** - Multi-provider Claude Code routing with GLM-5, Claude Pro, DeepSeek & more!
3+
🚀 **v2.4.3** - Multi-provider Claude Code routing with GLM-5, Claude Pro, DeepSeek & more!
44

55
Use Claude Code as a single interface to access multiple AI providers with intelligent routing for optimal performance, cost, and quality.
66

@@ -14,7 +14,8 @@ npm install -g @halilertekin/claude-code-router-config
1414
export GLM_API_KEY="your_key"
1515

1616
# 3. Use with Claude Code
17-
glm # → z.ai GLM-5 (Coding Plan)
17+
glm # → z.ai GLM-4.7 (Coding Plan)
18+
glm5 # → z.ai GLM-5 (Coding Plan)
1819
glmapi # → z.ai GLM-5 (API Credits)
1920
claude-pro # → Anthropic Claude Pro
2021
deepseek # → DeepSeek
@@ -26,8 +27,9 @@ deepseek # → DeepSeek
2627

2728
| Alias | Provider | Endpoint | Model | Best For |
2829
|-------|----------|----------|-------|----------|
29-
| `glm` | z.ai | Coding Plan | GLM-5 | Subscription coding |
30-
| `glmapi` | z.ai | API Credits | GLM-5 | Pay-per-use |
30+
| `glm` | z.ai | Coding Plan | GLM-4.7 | Pro subscription coding |
31+
| `glm5` | z.ai | Coding Plan | GLM-5 | Max users, complex tasks |
32+
| `glmapi` | z.ai | API Credits | GLM-5 | Pay-per-use (30$ bakiye) |
3133
| `claude-pro` | Anthropic | Official | Claude Sonnet 4.5 | Premium coding |
3234
| `deepseek` | DeepSeek | Anthropic API | deepseek-chat | Budget coding |
3335
| `minimax` / `mm` | MiniMax | Anthropic API | M2.5 | Long context |

docs/FULL_DOCUMENTATION.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,19 @@ Claude Code Router, Claude Code CLI'ı bir proxy üzerinden çalıştırarak ist
107107
### 5. Zhipu GLM (Z.ai)
108108
| Özellik | Değer |
109109
|---------|-------|
110-
| **API URL** | `https://api.z.ai/api/coding/paas/v4/chat/completions` |
111-
| **Modeller** | glm-5 (önerilen), glm-4.7, glm-4.6, glm-4.5, glm-4-plus |
110+
| **API URL** | `https://api.z.ai/api/anthropic` (Coding Plan) / `https://api.z.ai/api/paas/v4` (API Credits) |
111+
| **Modeller** | glm-5 (max kullanıcılar için önerilen), glm-4.7 (Pro için varsayılan) |
112112
| **Kullanım** | Çok dilli, Çince, çeviri |
113-
| **Maliyet** | Düşük |
113+
| **Maliyet** | Düşük (Pro: 3x kullanım) |
114114
| **Env Var** | `GLM_API_KEY` |
115115

116+
### Endpoint'ler:
117+
| Alias | Endpoint | Model | Kullanım |
118+
|-------|----------|-------|----------|
119+
| `glm` | api.anthropic | GLM-4.7 | Coding Plan (Pro) |
120+
| `glm5` | api.anthropic | GLM-5 | Coding Plan (Max) |
121+
| `glmapi` | api/paas/v4 | GLM-5 | API Credits (kredi ile) | |
122+
116123
### 6. OpenRouter
117124
| Özellik | Değer |
118125
|---------|-------|

docs/FULL_DOCUMENTATION_EN.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,19 @@ Claude Code Router acts as a proxy that intercepts Claude Code CLI requests and
107107
### 5. Zhipu GLM (Z.ai)
108108
| Feature | Value |
109109
|---------|-------|
110-
| **API URL** | `https://api.z.ai/api/coding/paas/v4/chat/completions` |
111-
| **Models** | glm-5 (recommended), glm-4.7, glm-4.6, glm-4.5, glm-4-plus |
110+
| **API URL** | `https://api.z.ai/api/anthropic` (Coding Plan) / `https://api.z.ai/api/paas/v4` (API Credits) |
111+
| **Models** | glm-5 (recommended for max users), glm-4.7 (default for Pro) |
112112
| **Use Case** | Multilingual, Chinese, translation |
113-
| **Cost** | Low |
113+
| **Cost** | Low (Pro: 3x usage) |
114114
| **Env Var** | `GLM_API_KEY` |
115115

116+
### Endpoints:
117+
| Alias | Endpoint | Model | Use Case |
118+
|-------|----------|-------|----------|
119+
| `glm` | api.anthropic | GLM-4.7 | Coding Plan (Pro) |
120+
| `glm5` | api.anthropic | GLM-5 | Coding Plan (Max) |
121+
| `glmapi` | api/paas/v4 | GLM-5 | API Credits (pay-per-use) | |
122+
116123
### 6. OpenRouter
117124
| Feature | Value |
118125
|---------|-------|

docs/PROVIDER_SETUP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ User Request: "Help me refactor this code"
170170
171171
Intent Router: CODING intent detected
172172
173-
Provider Selection: glm,glm-5 (primary)
173+
Provider Selection: glm,glm-4.7 (Pro) or glm5,glm-5 (Max) or glmapi,glm-5 (API Credits)
174174
175175
Try GLM → Success ✅
176176
OR

docs/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Use Claude Code as a single interface to access multiple AI providers with inten
1717
| Deep analysis, architecture | Anthropic | claude-sonnet-4 |
1818
| Quick responses, summaries | Gemini | gemini-2.5-flash |
1919
| Simple tasks | Qwen | qwen-plus |
20-
| Translation, multilingual | GLM | glm-5 |
20+
| Translation, multilingual | GLM | glm-5 (recommended for max users), glm-4.7 (default for Pro) |
2121
| Complex algorithms | OpenAI | o1 |
2222
| Coding assistance | GitHub Copilot | copilot |
2323

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@halilertekin/claude-code-router-config",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"description": "Multi-provider configuration for Claude Code Router with intent-based routing, advanced CLI tools, analytics, and smart routing. Setup OpenAI, Anthropic, Gemini, Qwen, GLM, OpenRouter, and GitHub Copilot with intelligent routing.",
55
"main": "install.js",
66
"bin": {

0 commit comments

Comments
 (0)