Skip to main content

MAX_OPTIONS

Constant MAX_OPTIONS 

Source
pub const MAX_OPTIONS: usize = 20;
Expand description

Maximum number of answer options in a single question.

Bounded by Ollama’s top_logprobs ceiling of 20: the engine reads the distribution over the first generated token, so an option whose label is not among those 20 entries has no observable probability. See Answer’s truncated flag for the partial case.