cline 使用 cline-free/glm-5.2 或 deepseek/deepseek-v4-flash

npm i -g cline --registry https://registry.npmjs.org

出现如下错误
Error: cline-pass requires re-authentication.
则可以
cline auth 重新认证一下

curl -s https://api.cline.bot/api/v1/ai/cline/recommended-models | jq '.free[].id'

"deepseek/deepseek-v4-flash"
"cline-free/glm-5.2"
"poolside/laguna-s-2.1:free"
"stepfun/step-3.7-flash"
可以通过 curl 带自定义 header 测试其中的免费模型

curl -X POST https://api.cline.bot/api/v1/chat/completions \
  -H "Authorization: Bearer <your_api_key>" \
  -H "Content-Type: application/json" \
  -H "x-client-type: cline-cli" \
  -d '{
    "model": "cline-free/glm-5.2",
    "messages": [
      {"role": "user", "content": "write a story about function."}
    ],
    "stream": true
  }'

我正在智谱大模型开放平台 BigModel.cn上打造AI应用,智谱新一代旗舰模型 GLM-5.2 已上线, 在推理、代码、智能体综合能力达到开源模型 SOTA 水平,通过我的邀请链接注册即可获得 2000万Tokens 大礼包,期待和你一起在BigModel上畅享卓越模型能力。链接:https://www.bigmodel.cn/invite?icode=1ALXyyD8V6xWbjB8YRo6k3HEaazDlIZGj9HxftzTbt4%3D

参考:
白嫖Cline的GLM5.2模型的超简单教程(ccswitch+codex使用)

posted @ 2026-08-04 08:19  geyee  阅读(55)  评论(0)    收藏  举报