mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-06 16:15:50 +08:00
- Prefer `max_tokens` when both `max_tokens` and `max_completion_tokens` are present, otherwise use whichever exists. - Default to existing template `max_tokens` limit when neither field is provided. - Add regression coverage for all token-limit source/preference paths. Closes: #5040