mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
* fix(minimax): forward reasoning_effort instead of dropping it * fix(minimax): forward reasoning_effort instead of dropping it * fix(minimax): gate reasoning_effort on the cost map and map MiniMax-M3.1-Flash Forward reasoning_effort for every MiniMax model unless its cost map entry says it does not reason, so a MiniMax model newer than the map keeps the caller's effort instead of losing it. Add a minimax/MiniMax-M3.1-Flash entry with MiniMax's published pay-as-you-go pricing and its accepted effort levels (low, medium, high, xhigh, max), and a minimax-reasoning-baseline fallback rule that marks unmapped minimax/MiniMax-M* ids as reasoning-capable, so thinking is kept for them too. * refactor(minimax): gate reasoning_effort on supports_reasoning like thinking Forward reasoning_effort when the cost map, or the MiniMax M-series fallback rule, says the model supports reasoning, the same check thinking already uses. An unlisted MiniMax model outside the M series now drops it, with the existing drop warning. * refactor(minimax): build supported params in one expression and type the new tests Build the MiniMax supported params list without mutating it, give the new test helpers precise types, and assert invariants (both cost map files agree, prices are positive and ordered, every declared effort level is forwarded) instead of pinning MiniMax's prices and effort levels as literals. * fix(minimax): treat every unlisted minimax/ model as reasoning-capable Widen the MiniMax fallback rule from M-series ids to the whole minimax/ namespace, matching the W&B rule, so an unlisted MiniMax model keeps reasoning_effort and thinking. Exact cost map entries still win, so mapped speech, video and image models are unaffected. --------- Co-authored-by: ryan-crabbe-berri <ryan@berri.ai> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_transformation.py | ||