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 -1 (unlimited).

Examples

using var chat = new PdfChat(chatModel, embeddingModel);

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