mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-11 11:47:50 +00:00
litellm's max_tokens is the completion cap (it equals max_output_tokens for ~94% of models), not the context window, so falling back to it overstated the context as the output limit. Take context from max_input_tokens alone; a model that reports none falls through to the id-based estimate downstream, which is honest about being a guess rather than mislabelling the output cap. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>