Table of Contents

Property MaximumCompletionTokens

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

MaximumCompletionTokens

Gets or sets the maximum number of tokens to generate per response.

public int MaximumCompletionTokens { get; set; }

Property Value

int

The maximum completion tokens. Default is 2048.

Examples

using var chat = new RagChat(ragEngine, chatModel);

// Allow longer responses for detailed answers
chat.MaximumCompletionTokens = 4096;
Share