ChatCompletionChoiceFinishReason

March 20, 2026 ยท View on GitHub

Example Usage

from mistralai.client.models import ChatCompletionChoiceFinishReason

# Open enum: unrecognized values are captured as UnrecognizedStr
value: ChatCompletionChoiceFinishReason = "stop"

Values

This is an open enum. Unrecognized values will not fail type checks.

  • "stop"
  • "length"
  • "model_length"
  • "error"
  • "tool_calls"