litellm/tests/unit/llms/mistral
Chaitanya Deshpande 06d830e6d8
fix(mistral): map model_length finish reason to length (#55998)
Mistral reports finish_reason "model_length" when a generation stops because
the model's context window is full. It was missing from the finish reason map,
so LiteLLM logged "Unmapped finish_reason" and returned "stop", which makes a
truncated answer look complete on both streaming and non-streaming calls.
2026-12-04 15:12:25 -08:00
..
audio_speech chore(typing): clear 670 basedpyright Any errors by validating provider payloads at the boundary (#45388) 2026-10-13 15:35:23 -07:00
audio_transcription fix(audio-transcription): keep transcripts out of transcription error messages (#50137) 2026-11-05 18:07:15 -08:00
batches test: migrate phase 9 legacy llm provider tests to tests/unit 2026-09-20 08:13:11 +00:00
count_tokens test(responses): align bridged system prompt expectations (#52693) 2026-11-19 00:27:35 +00:00
files test: migrate phase 9 legacy llm provider tests to tests/unit 2026-09-20 08:13:11 +00:00
__init__.py test: migrate phase 9 legacy llm provider tests to tests/unit 2026-09-20 08:13:11 +00:00
test_mistral_chat_transformation.py fix(mistral): map model_length finish reason to length (#55998) 2026-12-04 15:12:25 -08:00
test_mistral_completion.py test: migrate local_testing SDK and provider tests out of build_and_test (#45760) 2026-10-10 23:14:25 +00:00
test_mistral_embedding.py test: migrate local_testing SDK and provider tests out of build_and_test (#45760) 2026-10-10 23:14:25 +00:00