Skip to main content

//clika-runtime/io.clika.modelverse/Modelverse/maxContextLength

maxContextLength

[common]
fun maxContextLength(source: String, options: CheckOptions = CheckOptions()): Long

The largest context the one device options names can serve source at, from the same law: the admitted window of its verdict (the largest rung of the context ladder up to the model's own window, or up to CheckOptions.maxSeq when given, whose need keeps FitGrade.GOOD or better), 0 when no context fits. options must judge exactly one device (one FitDevice, or one device spelling); more refuses with IllegalArgumentException.