2c05df52b sent a model on to the relay's next API when New API answers 503
"No available channel ... under group" on the one asked. WandAPI answers 404
for the same case, so a GPT asked on its Anthropic URL stayed a 404.
catalog.NoChannel already took a 404 but only by the 503's words; it now also
takes a 404 whose JSON error carries New API's model_not_found code (code or
type) with a message that names a channel or a group, in English or Chinese,
and the Chinese 没有可用渠道.
A real 404 stays one: a wrong base URL ("404 page not found", HTML,
"Invalid URL"), Anthropic's not_found_error, and OpenAI's "The model X does
not exist or you do not have access to it" (same code, no channel or group
named) reach the client and nothing is remembered.
Fixture basis: New API's source (QuantumNous/new-api, middleware/distributor.go
and service/channel_select.go) gives no-channel as 503 with
ErrorCodeModelNotFound and "No available channel for model {{.Model}} under
group {{.Group}} (distributor)". I did not find WandAPI's 404 body: the 404
fixtures are built from New API's code and message template, not a captured
WandAPI reply. If WandAPI's wording names neither a channel nor a group, this
will not match; the reporter's body would settle it.
Run (mote, -tags nogui): go vet catalog+gateway; go test -run NoChannel
catalog and gateway: ok. TestNoChannel and TestNoChannelAs404FromAFork
(fallback taken; missing-model and wrong-base-URL 404s not) are red with the
404 branch switched off by hand.
Not tried: a real WandAPI account.