mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
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. |
||
|---|---|---|
| .. | ||
| audio_speech | ||
| audio_transcription | ||
| batches | ||
| count_tokens | ||
| files | ||
| __init__.py | ||
| test_mistral_chat_transformation.py | ||
| test_mistral_completion.py | ||
| test_mistral_embedding.py | ||