A gateway key now carries ServiceTier: follow the request (unset),
standard, Fast (priority) or Ultrafast. keyTiered sets the Responses and
Chat request's service_tier to it, over the client's ask and Codex's own
setting; standard takes the tier off and Ultrafast on a bare model no
account lists it on goes as priority. What is sent upstream stays the
providers' own rule (fits, takesTier, fallback), so a vendor with no
service tier is sent none; Anthropic-protocol requests are untouched.
Set with the tier-key action, `magpie gateway-key tier <id> ...`, or the
key row's badge (zh, zh-TW, ja, de strings).
Run (wsl-run, Linux): TestGatewayKeyServiceTier, TestKeyTieredChat,
TestKeyServiceTier, TestGatewayKeyTierCLI green; internal/gui -run
Key|Tier|Caller|Access ok; gateway-key-tier and gateway-key-concurrency
GUI files 40 of 40 in chromium and webkit (serial); go vet nogui for
linux, windows and darwin; gofmt clean. Broken by hand: with the
keyTiered call removed TestGatewayKeyServiceTier fails on 4 rows.
A parallel run of all gateway-key and i18n GUI files had 8 unrelated
timeouts that pass serially (load). The whole internal/cli package hit
the default 10m timeout on this box; the key tests in it pass.
Not tried: a real ChatGPT account, the Windows box, the full suite.