Ante 0.2.9 skips a catalog entry whose max_tokens is not less than its
context_limit:
warning: skipped catalog entry providers.magpie.preferred_models.b/eq:
max_tokens (128000) must be less than context_limit (128000)
maxTokens caps the reply limit at the window (OutputWithin), so a model
whose list gives the same number for both, or a larger output, was
written with max_tokens == context_limit and went missing from Ante; the
reporter saw magpie's provider vanish from /provider. anteMaxTokens now
writes context_limit-1 in that case. Only Ante is changed: the other
agents magpie writes both sizes for (goose writes the window alone) have
no report or known check that turns away a reply limit equal to the
window; they were not each tried with equal values.
Run: real Ante 0.2.9 (darwin-arm64, download.ante.run) in a sandbox
HOME/ANTE_HOME: `ante catalog` printed the warning above for 128000/128000
and loaded the entry at 127999/128000. TestAnteMaxTokensUnderTheWindow
fails without the change (equal and over: max_tokens 128000 not under
context_limit 128000) and passes with it; go test -run TestAnte
./internal/agent passes.