mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
Zen's Responses endpoint rejects max_output_tokens below 16, and clients such as Claude Code send tiny budgets for background tasks. The 400 was retried across every anonymous exit before reaching the client. Raise budgets in (0, 16) to 16 on both the bridged and the same-protocol Responses paths; nil and larger budgets pass through unchanged. Co-authored-by: ahoo <ahoo@hroze.org>