Skip to main content

MAX_DESCRIPTION_CHARS

Constant MAX_DESCRIPTION_CHARS 

Source
pub const MAX_DESCRIPTION_CHARS: usize = 280;
Expand description

Characters a Model.description may carry into a guest model’s model-selection reasoning.

The bound is not the whole defense — [sanitize_description] strips control characters and collapses the text to one line first, because a length bound alone does not stop an injection short enough to fit. The bound is what stops a long one, and what keeps a listing’s size independent of how much prose an operator wrote.