remote-magpie/codex/gpt-6.1-sol had service_tiers [] in the local
/v1/codex/models while the remote's own codex/gpt-6.1-sol had Fast: the
local catalog only gave tiers to a provider added by its address
(OwnTier, Preset == ""), and the gateway sent service_tier only to one.
Now a remote magpie's /v1/models (asked with X-Magpie-Drawers) tells each
model's service_tiers as its own Codex catalog offers them
(codexcat.ServiceTiers over the same CodexCatalog/Entries as its
/v1/codex/models). The local keeps the ids (catalog.Model.Tiers ->
Entry.Tiers), codexListed hands them on for the remote's models, and
codexcat.Entries offers them with Codex's own names. The gateway sends the
tier Codex asked for to a remote magpie as it was asked (OwnTier, still
dropped and remembered if refused); the remote serves it as its own
Codex's turn. A remote from before this sends no tiers: unchanged.
Run:
- TestRemoteMagpieOffersItsTiers (gateway, the gateway as both computers
over HTTP): fails without the codexListed change with
`office/relay/gpt-6.1-sol offered "" ..., want "priority:Fast "`, and
without the gateway change with `tier sent to the remote magpie [(none)],
by it to its vendor [(none)]; want priority, priority`.
- TestServiceTiersGoOnToAnotherMagpie (codexcat): a ChatGPT account's
model with Codex's own entry tells priority+ultrafast, a relay's GPT
Fast, glm none; fails when either the own-entry branch of ServiceTiers
or the namedTiers branch of Entries is taken out.
- gofmt -l clean; go vet -tags nogui for darwin, linux, windows on
gateway, provider, codexcat, catalog, agent; go test -tags nogui of those
five packages under a temp HOME: ok.
Not tried with a real ChatGPT account behind a real remote magpie.