sdytman (#feedback, 10-19): "clinepass供应商现在可以勾选deepseek模型只走deepseek官方上游,建议glm也加一个勾选选项,只走z.ai上游".
With pinUpstream on, a request for a GLM model (cline-pass/glm-5.3,
cline-pass/glm-5.3-flash, any non-free id whose name starts with glm)
now carries "providerOptions":{"gateway":{"only":["zai"]}}, as a
DeepSeek one carries ["deepseek"]. cline-free/ models, other makers'
models and a body with providerOptions of its own go as sent. One
option covers both: it means "the maker's own API" for each.
The slug: Cline's gateway is Vercel's AI Gateway (the ProviderPin
author on linux.do/t/topic/2918145: "锁在Vercel的DeepSeek官转上";
providerOptions.gateway.only is that gateway's option).
ai-gateway.vercel.sh/v1/models/zai/glm-5.3/endpoints and
.../zai/glm-5.3-flash/endpoints list provider_name "zai" (and
deepseek/deepseek-v4-pro lists "deepseek", the slug already pinned).
Not tried with a real ClinePass key (none on this machine).
Run: bun test packages/cline/index.test.mjs, 75 pass; the whole suite
(TMPDIR and HOME under a scratch dir) 1825 pass, 0 fail; bun
scripts/check.mjs ok. Broken by hand, each goes red: no glm entry (3
tests), cline-free/ not skipped (1), every maker pinned to zai (3), the
client's providerOptions overwritten (1).
13 lines
549 B
JSON
13 lines
549 B
JSON
{
|
|
"name": "@magpie-community/opencode-cline-auth",
|
|
"version": "0.1.9",
|
|
"description": "Cline (cline.bot) on your own account — usage billing, ClinePass and the free models — in OpenCode and magpie",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "cline", "clinepass"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/cline" }
|
|
}
|