klyn.llm.inference.LocalLLMProvider.maxNewTokens
field
public maxNewTokens as Long = 128l
Description

Maximum generated tokens per complete() request, including a terminating EOS token. The prompt plus this bound must fit maxContext. Token-level generation can specify its own bound without changing this setting.

Example

provider.maxNewTokens = 256l