mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +00:00
* fix(mistral): send reasoning_effort and thinking to magistral models as a level Mistral accepts magistral-small-latest and magistral-medium-latest now take reasoning_effort (none or high) as their reasoning switch, but LiteLLM dropped reasoning_effort and thinking for any magistral model and injected Magistral's deprecated reasoning system prompt instead, so streamed calls returned no reasoning and "none" still reasoned. Forward reasoning_effort rounded to the cost map's declared levels, map thinking onto it (disabled becomes none), drop the system prompt, and declare none and high on both magistral rows. * fix(mistral): send adaptive thinking to magistral as a reasoning level * fix(mistral): reject reasoning_effort strings that are not a level, and leave "default" to Mistral A string such as "HIGH" or "auto" went to Mistral as sent and Mistral answered 422, even with drop_params. It now takes the same path as a number: dropped with a warning under drop_params, a 400 without it. "default", which litellm.completion lists as a value, sends no reasoning_effort so Mistral applies its own default. * fix(mistral): preserve thinking when unsupported effort is dropped Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(mistral): raise reasoning failures at the public boundary Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(mistral): share fixed capabilities with warning regressions Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| audio_speech | ||
| audio_transcription | ||
| batches | ||
| files | ||
| __init__.py | ||
| test_mistral_chat_transformation.py | ||
| test_mistral_completion.py | ||
| test_mistral_embedding.py | ||