Skip to content

Commit 68eaaaa

Browse files
committed
fix: glmapi uses paas/v4 for API credits (pay-per-use)
1 parent 808785e commit 68eaaaa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cli/ccc.zsh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ ccc() {
9898
;;
9999

100100
glmapi)
101-
# z.ai / GLM Standard API (kredi ile kullanım)
102-
export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
101+
# z.ai / GLM API Credits (30$ bakiye - pay-per-use)
102+
export ANTHROPIC_BASE_URL="https://api.z.ai/api/paas/v4"
103103
export ANTHROPIC_API_KEY="${GLM_API_KEY:-${PPINFRA_API_KEY:-$GLM_KEY}}"
104104
export ANTHROPIC_AUTH_TOKEN="$ANTHROPIC_API_KEY"
105105
export API_TIMEOUT_MS=3000000
@@ -116,7 +116,7 @@ ccc() {
116116
return 1
117117
fi
118118

119-
echo "🔄 Provider: z.ai (GLM-5 API - Kredi)"
119+
echo "🔄 Provider: z.ai (GLM-5 API Credits)"
120120
;;
121121

122122
ds|deepseek)

0 commit comments

Comments
 (0)