Files
magpie/internal
yetone 21fb17e4df gateway: a remote magpie's list carries only the decision models picked there (GokoShiki)
GokoShiki on Discord: the remote magpie's Gateway page showed the 24
models picked there, and this magpie, with it added as a Remote magpie,
listed 51, the extra ones OpenRouter's. /v1/models, asked by another
magpie with X-Magpie-Deciders, added provider.Deciders(): every decision
model of OpenRouter (and of a plugin, a remote magpie, a Bailian plan),
picked or not. This magpie read each one as a model of the remote's, and
with no picks of its own exposed them all. It now adds OfferedDeciders,
the ones the remote's own group pickers offer since coeo91's report:
with picks saved, the picked ones; with none, every one, as before.

TestRemoteMagpieListsThePicks runs two magpies: the remote under one
HOME with OpenRouter (two chat models and one decision model picked of
40 + 27), DeepSeek (one picked) and a fake Grok plugin; this magpie under
another HOME adds it through an httptest server serving the remote's
real /v1/models reply, and must expose exactly the remote's picks,
plugin and DeepSeek models included.

Run at this tree (on origin/main b1a2eec2c, the same diff as b35e6a8b5,
which carried another session's message and was reverted): gofmt -l
clean; go vet (darwin), GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./... clean; set -o pipefail; go test -timeout 45m
./... with its log kept whole: 68 packages ok, no FAIL (gateway 614s,
provider 270s).

Broken by hand: with provider.Deciders() back in models(), the new test
is red: the remote picked 8, this magpie lists 34 (all 27 OpenRouter
decision models). Green with the change.

Not tried: a real pair of magpies with GokoShiki's providers; a group
here that names an unpicked decision model of the remote (it is no
longer in the list, though the remote still answers /v1/systemone for
it). The Grok and DeepSeek models GokoShiki misses pass through in the
test, so their absence there has another cause (asked on Discord: kept
to routing groups on the remote, or picks saved here before they were
added there). No GUI change, so no GUI run.
2026-10-22 02:12:22 +08:00
..
…
…
…
…
…