Jeremy.Zhou asked that dropped free models leave the list by themselves
and new ones join it. The list was already read from Zen's /models each
time the host lists models (magpie's start, refresh, and now its hourly
relist), with the last list kept when Zen's can't be read. Two request-time
gaps remained:
- A model not in the list (Zen dropped it) threw, which the host reports as
a transport failure, so magpie rested the whole account. It is now a 404
not_found_error, "Model X is not available as an OpenCode Zen free model
now. Free models: ...", which magpie reads as that model alone refused.
- After the first list, a model not in it never asked Zen again, so one
made free since stayed refused until a relist. Now it asks again, at
most once a minute, so a hand-typed id doesn't list on every request.
A model on the wrong protocol still throws as before. README's Models
section says how the list stays current.
Run: bun test in packages/zen-free (32 pass; 3 of the new tests fail on
0.1.1's provider.mjs), bun scripts/check.mjs (ok). Real use against Zen
with the public key: glm-5-free gets the local 404 listing Zen's 11 free
models, big-pickle answers 200.