What does top_p control in Claude sampling?
Select an answer to reveal the explanation.
Short Explanation and Infographic
top_p is nucleus sampling — only the smallest set of tokens whose probs sum to p are in play.
Full explanation below image
Full Explanation
top_p truncates the token distribution to a probability nucleus. It is not pricing, tool enablement, or image count.