hy125245 (X, 10-23) found that providerOptions.gateway.only ["deepseek"]
alone does nothing on ClinePass: a fake upstream still succeeded. Adding
has ["vision","implicit-caching"] beside it routed the request to
DeepSeek (finalProvider deepseek, ~200-246 tok/s, creditsUsed 0) and made
a fake upstream fail with "no matching upstream".
Changed:
- The built-in ClinePass's Upstream tick now sends, for cline-pass/deepseek*,
providerOptions.gateway {only:[deepseek], has:[implicit-caching]}, with
"vision" first when the model takes images (live catalog) or the request
carries an image part (messages[].content[].type image_url/image/
input_image; the word in text does not count). GLM, glm-5.3-flash's
OpenRouter provider.only and the client's own providerOptions/provider are
as before.
- On the Cline plugin's provider the tick no longer pins cline-pass/deepseek*:
opencode-cline-auth 0.1.11 pins them itself by default, with the has
filter and one unpinned retry on "no matching upstream" or a 5xx, and it
keeps a body's own providerOptions, so magpie's only alone would take its
place. The plugin's GLM pin from the tick is unchanged.
Run at 03951798a (origin/main) plus this change:
- go build ./..., go vet ./internal/... (darwin), GOOS=linux and
GOOS=windows go vet ./internal/gateway ./internal/provider, gofmt -l: clean.
- go test -count=1 ./internal/provider: ok (112s).
- go test -count=1 -run 'Cline|Plugin' ./internal/gateway: ok (53s).
Broken by hand, each red:
- the plugin provider pinned again: TestClinePluginPinsDeepSeekAndGLM;
- no has: TestClinePinsDeepSeekAndGLM, all three Pass DeepSeek models;
- vision always: the same test, text-only requests;
- an image found by substring: the "image_url in text" case.
Not run: the full go test ./... suite. The box is at load ~256 with about
ten sessions queued on it, so it went out on the touched packages. Not
tried: a real ClinePass request. There is no Cline sign-in on this
machine, so finalProvider, speed and credits are the reporter's numbers,
not measured here.