mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
A deployment carrying reasoning_effort in its litellm_params on the /v1/messages passthrough mapped the effort to a legacy thinking block whose budget_tokens was forwarded as is, so any request whose max_tokens sat at or below that budget was rejected upstream with a 400. The mapped budget now runs through the same cap the adaptive-to-legacy branch and the chat path already use: it is clamped to max_tokens - 1, and dropped with a warning when even the minimum budget cannot fit. The cap helper becomes public since three call sites outside AnthropicConfig use it. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_openai_like_anthropic_messages_transformation.py | ||